React Native项目未在Expo iOS模拟器中显示

时间:2018-07-22 18:36:33

标签: react-native expo

我正在创建我的第一个React-Native-App,但似乎Expo不能在模拟器上运行。

做完之后,我什么都没做

sudo npm run start

在我的本机应用程序中,它向我显示带有条形码和以下说明的屏幕

View your app with live reloading:

  Android device:
    -> Point the Expo app to the QR code above.
       (You'll find the QR scanner on the Projects tab of the app.)
  iOS device:
    -> Press s to email/text the app URL to your phone.
  Emulator:
    -> Press a (Android) or i (iOS) to start an emulator.

Your phone will need to be on the same local network as this computer.
For links to install the Expo app, please visit https://expo.io.

Logs from serving your app will appear here. Press Ctrl+C at any time to stop.

 › Press a to open Android device or emulator, or i to open iOS emulator.
 › Press s to send the app URL to your phone number or email address
 › Press q to display QR code.
 › Press r to restart packager, or R to restart packager and clear cache.
 › Press d to toggle development mode. (current mode: development)

如上述说明中所述

Emulator:
    -> Press a (Android) or i (iOS) to start an emulator.

我按I关键字,它会打开模拟器,但不显示任何项目,有一个expo应用程序,但项目选项卡似乎为空。

该应用确实可以在我的物理iOS(iPhone SE)设备上正常运行。

有人可以帮我解决这个问题吗?

0 个答案:

没有答案