在react-native 0.26.0 版本 1. 引入头文件 var 类名 = './类名' 会报Super expression must either be null or a function, not undefined 解决方法 export const 类名 = './类名'; 2. 添加tabBar 时添加 selected = { this.state.sel
1.问题 D:\rnworkspace\Hello>react-native run-android JS server already running. Building and installing the app on the device (cd android && gradlew.bat install Debug)... Downloading https://serv
背景 没想到官方没有提供纯粹的带错误提示的输入框,官方提供了启用错误样式 status 属性。但是展示错误信息提示却需要捆绑Form 和 Form.Item。说实话有点不友好,我就一个简单的输入框,想要用户输入时用正则校验,错误时提示一些错误信息。然后表单数据就这么一个输入,完全没必要写一整个Form 来管理提交数据,为了这一个输入对接 Form 那一堆 API 属实是水代码。 加一个错误提示