javascript - 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>
);}
解决方案
推荐阅读
- vuejs3 - 将 Bootstrap 5 与 Vue 3 一起使用
- reactjs - 将 this.setstate 与 Fetch API 一起使用
- php - PHP DomDocument 获取锚标记href 和内部html?
- javascript - 如何在使用 window.location.replace() 创建重定向路径时防止 XSS?
- javascript - JSON stringify 在整个 json 对象周围添加引号并转义字符
- flutter - 应用程序构建后,google_fonts 无法正常工作
- clang - clang11 Segfaulting on name mangling
- bash - 如何将 java 文件的输出存储在 .txt 中,而不是显示在终端中
- reactjs - 来自查询字符串的 Axois 请求值
- c - 调用一系列函数后返回错误值