react Nactive 簡(jiǎn)直火的不行,所以我也來(lái)湊個(gè)熱鬧,mac安裝過(guò)程一直很順利。
只是在這里卡了一下下。汗!
1.找 RCTWebSocketExecutor.m 文件在哪 ?
?在xcode 項(xiàng)目中的library中。
其他
To run your app on iOS:
cd /Users/chen/FristProject
react-native run-ios
- or -
Open ios/FristProject.xcodeproj in Xcode
Hit the Run button
To run your app on Android:
cd /Users/chen/FristProject
Have an Android emulator running (quickest way to get started), or a device connected
react-native run-android
android 真機(jī)運(yùn)行白屏問(wèn)題
在應(yīng)用程序管理中允許此程序打開(kāi)懸浮窗權(quán)限。
could?not?get?batched bridge,?make?sure?your bundle is packaged correctly
這個(gè)直接搖一搖 在最下面的 'Dev Settings'中設(shè)置好ip和端口號(hào)后reload就正常了
ActivityIndicatorIOS這個(gè)控件被報(bào)找不到element type is invalid expected a string
改成ActivityIndicator 就ok 了 。。。
在寫一個(gè)跳轉(zhuǎn)的時(shí)候遇到這個(gè) cannot read property of 'push' undefined
his.props.navigator.push({
title:movie.title,
component:MovieDetail,
});
原來(lái)這個(gè)方法必須要有頭才能調(diào)用 NavigatorIOS