-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native 入门问题 #10
Comments
如何进行Debug官方文档: debugging 如何使用Chrome中的React Developer Tools?暂时不能,只能使用如下方法。 Install the package:
Add a script to your package.json:
Android 虚拟机
|
样式库样式库初步确定为react-native-material-ui,因为与在React中使用的material-u的API一致。
|
如何使用material-ui中的变量举例: 我想获得Appbar的高度
方式二(不推荐,因为React官方不再推荐使用context,以后可能会被删除):
|
TextInput取值正确方法 通过state控制input的value
Way to retrieve TextInput value programmatically via property access or method call?
|
Live Reload 与 Hot Reload区别Live reloading reloads or refreshes the entire app when a file changes. For example, if you were four links deep into your navigation and saved a change, live reloading would restart the app and load the app back to the initial route. Hot reloading only refreshes the files that were changed without losing the state of the app. For example, if you were four links deep into your navigation and saved a change to some styling, the state would not change, but the new styles would appear on the page without having to navigate back to the page you are on because you would still be on the same page. |
怎样调试Network在RN入口处添加
|
expected a string (for built-in components) or a class/function (for composite components) but got: object.错误信息
错误代码
|
debug相关问题1. 国产手机报如下错误
解决办法
2. 在使用
|
element type error错误信息
错误代码
解析
解决办法
改为
|
IDE: Deco (ios only) |
错误错误截图错误文字The development server returned response error code: 500 URL: http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false Body: processBundleResult 解决删除src目录
|
ref本来就是一种反模式的处理,react官方并不推荐过度使用ref 而且RN官方在手册中也推荐的是你口中的垃圾做法 我不认为官方不知道这种 ref 取值的方法,而且不清楚rerender的弊端(虽然我也在考虑rerender的问题),但我想说的是官方推荐的说法总不能沦为垃圾做法吧 |
结局:
react-native start
参考
The text was updated successfully, but these errors were encountered: