Friday, May 11, 2018

so success?yarm npm


Success! Created AwesomeProject2 at /home/program/AwesomeProject2
Inside that directory, you can run several commands:

  yarn start
    Starts the development server so you can open your app in the Expo
    app on your phone.

  yarn run ios
    (Mac only, requires Xcode)
    Starts the development server and loads your app in an iOS simulator.

  yarn run android
    (Requires Android build tools)
    Starts the development server and loads your app on a connected Android
    device or emulator.


  yarn test
    Starts the test runner.

  yarn run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!


We suggest that you begin by typing:

  cd AwesomeProject2
  yarn start


so where is npm start???
https://facebook.github.io/react-native/docs/getting-started.html



yarn test
yarn run v1.6.0
error Couldn't find a package.json file in "/home/programmer"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


21:51:10: Starting Android...
Error running adb: No Android device found. Please connect a device and follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

 › Press a to open Android device or 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)



you need to install the expo app on your phone only then the above url expo:// will will work

No comments:

Post a Comment