我对React Native
很新,我收到了这个错误:
必须包装相邻的JSX元素
代码:
render(){
return(
<UpperPadding>
<View style={styles.upperContainer}>
<TouchableHighlight onPress={() => Actions.register()>
<Image
source={require('./../images/registerbutton.png')} style={styles.background}
/>
</TouchableHighlight> //THIS IS WHERE I GET THE ERROR
</View>
</UpperPadding>
);
}
}
感谢任何帮助! 谢谢!