首页 > 解决方案 > Align inner tags of Touchable component in React Native

问题描述

I could not align the inner tags of Touchable component here is my code:

render(){
return(
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
<TouchablewithoutFeedback onPress={()=> this.incrementCount()}>
<Text style={{alignslef: 'center'>
Count 
</Text>
</TouchablewithoutFeedback>
);}

标签: javascriptreact-nativereact-native-android

解决方案



推荐阅读