ReactNative Errors notes

Published: 三 23 十二月 2015
By 小虎

In Tech.

tags: RN

ReactNative错误记录

View背景透明,显示出后面的image

2016-01-07

from:here

headline: {
    fontSize: 20,
    textAlign: 'center',
    backgroundColor: 'rgba(0,0,0,0)',
    color: 'white'
}


<View style={styles.container}>
  <Image 
    style={styles.backdrop} 
    source={{uri: 'https://unsplash.com/photos/JWiMShWiF14/download'}}>
      <View style={styles.backdropView}>
        <Text style={styles.welcome}>Headline</Text>
      </View>
  </Image>
</View>

image error

2015-12-23 10:30:27.482 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Requiring unknown module "image!cellicon". If you are sure the module is there, try restarting the packager.
If you are sure the module is there, try restarting the packager.

image require error

在引入image,使用require静态图片的时候,require('image!imagename')这样可以 但是,使用require('image!' + celldata.imagename)这种方式就会报这个错误

来源


Comments !

blogroll

social