I'm making app with using React Native. I noticed strange thing.
This code got me error unless I change last sentence to
export default MyButton3;
I want to export more than one pure components per file. I can do that if I don't use pure component declare.
But Why I can't do that with pure Components?
Thanks.
const MyButton3 = (props) => (
<TouchableOpacity style={[props.style,{height:40, backgroundColor:Asset.color_skyblue, justifyContent:'center'}]} onPress={props.onPress}>
<Text style={{color:'white', alignSelf:'center', fontSize:20, fontWeight:'bold'}}>{props.title}</Text>
</TouchableOpacity>
);
export MyButton3;