banner



How To Check Which Version Of React Is Installed

Bold that you lot have Node 12 LTS or greater installed, you can utilize npm to install the Expo CLI command line utility:

And then run the following commands to create a new React Native project called "AwesomeProject":

                                                expo init AwesomeProject                  

cd AwesomeProject
npm start # you can also use: expo start

This volition start a development server for yous.

Running your React Native awarding

Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, use the built-in QR code scanner of the Camera app.

Modifying your app

Now that y'all have successfully run the app, let'south alter it. Open up App.js in your text editor of choice and edit some lines. The application should reload automatically once you salvage your changes.

That's it!

Congratulations! You've successfully run and modified your starting time React Native app.

Now what?

Expo also has docs you can reference if y'all have questions specific to the tool. You tin too inquire for help at Expo forums.

These tools help yous get started quickly, but earlier committing to building your app with Expo CLI, read virtually the limitations.

If you accept a trouble with Expo, earlier creating a new issue, delight come across if there'southward an existing issue most it:

  • in the Expo CLI problems (for issues related to Expo CLI), or
  • in the Expo issues (for bug about the Expo customer or SDK).

If yous're curious to acquire more than about React Native, check out the Introduction to React Native.

Running your app on a simulator or virtual device

Expo CLI allows you to run your React Native app on a physical device without setting upwardly a development surround. If you want to run your app on the iOS Simulator or an Android Virtual Device, delight refer to the instructions for "React Native CLI Quickstart" to learn how to install Xcode or set up your Android development environment.

One time yous've set up these up, you can launch your app on an Android Virtual Device by running npm run android, or on the iOS Simulator by running npm run ios (macOS only).

Caveats

Because you lot don't build any native lawmaking when using Expo to create a projection, information technology'due south non possible to include custom native modules across the React Native APIs and components that are available in the Expo client app.

If you know that you'll eventually demand to include your ain native code, Expo is still a good way to become started. In that example y'all'll need to "eject" eventually to create your own native builds. If you do eject, the "React Native CLI Quickstart" instructions will be required to go along working on your projection.

Expo CLI configures your projection to apply the virtually contempo React Native version that is supported by the Expo client app. The Expo client app usually gains support for a given React Native version near a calendar week later on the React Native version is released every bit stable. You can bank check this document to discover out what versions are supported.

If y'all're integrating React Native into an existing project, you'll desire to skip Expo CLI and become straight to setting up the native build environment. Select "React Native CLI Quickstart" above for instructions on configuring a native build surround for React Native.

Source: https://reactnative.dev/docs/environment-setup

Posted by: moellersaingthad.blogspot.com

0 Response to "How To Check Which Version Of React Is Installed"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel