App
cd App
yarn cd
cd ios
pod install (注意不要+sudo,此处必须全局开启代理,否则下载会失败)
cd ..
yarn ios
如果yarn ios后无法看到...StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import {
Header,
LearnMoreLinks...API使用方式警告
可以看到入口文件中的一些API
例如
get AppRegistry(): AppRegistry {
return require('....,即迁移过程中向后兼容,即兼容性处理
这个codegenNativeComponent就是图片展示最终的一环,我们去看看是什么
忽略类型等其它空值警告判断,直入主题
let componentNameInUse...虽然是用js写代码,不过最终都是转换成原生控件,回到主题的第一个代码底部
return (requireNativeComponent(
componentNameInUse,