react-native icon indicating copy to clipboard operation
react-native copied to clipboard

set marginRight twice, the view hang there

Open changfuguo opened this issue 11 years ago • 2 comments

here i set style marginRight twice

   coverWrapper:{
      marginRight:5,
      width:60,
      height:93,
      flexDirection:'column',
      marginRight:20
  },

then the Interface is white and hang there,when i remove ' marginRight:5,' , then ok i guess we can not set a style twice, or it is bug ???

changfuguo avatar Oct 31 '15 10:10 changfuguo

It's just not a defined behaviour. I ran into the same issue ( #3584 ) and was recommended to use eslint which has improved efficiency by making it trivial to find such typos and mistakes! Just make sure to grab the babel parser and never make this mistake again ( no-dupe-keys: 1 ) which should be set already in the .eslintrc file in the root of this repo. Out of curiosity how are you debugging your application? When I encountered this running in the chrome debugger actually fixed this issue for me and allowed me to keep working so it wasn't until much later that I found my mistake

mangogogos avatar Oct 31 '15 16:10 mangogogos

@mangogogos tks so much , my error sence is the same to you. i just copy some codes from other place,so .., i do not know why there is no hint when debug in the chrome,

changfuguo avatar Nov 01 '15 05:11 changfuguo