講師回答 / 今朝
你是用的真實(shí)手機(jī)還是虛擬機(jī),錯誤是說你的手機(jī)訪問不到服務(wù)器你可能沒有執(zhí)行yarn start
已采納回答 / 今朝
但是有一點(diǎn),在刪除了全局的react-native-cli后,就不能直接執(zhí)行react-native 命令了,比如說react-native run-ios react-native run-android,需要在前面加上yarn或者npxyarn react-native run-iosnpx react-native run-iosandroid同理
講師回答 / 今朝
但是有一點(diǎn),在刪除了全局的react-native-cli后,就不能直接執(zhí)行react-native 命令了,比如說react-native run-ios react-native run-android,需要在前面加上yarn或者npxyarn react-native run-iosnpx react-native run-iosandroid同理
已采納回答 / 今朝
同學(xué),你的typescript拼錯了。react-native init TypeScriptDemo --template typescript? 不是typescrpit
2019-09-05