You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EJECTING.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ If you see the reason you'd like to eject, click the link for a short explanatio
12
12
13
13
Create React Native App makes it easy to start working on React Native apps by removing native code build tools from the equation. However, many apps want functionality that comes from interfacing directly with mobile platform APIs via Java, Objective-C, Swift, C, etc. As of right now, the only way to get direct access to these APIs from your app is by "ejecting" from CRNA and building the native code yourself.
14
14
15
-
You may also want to distribute your app to coworkers, friends, or customers (shocking!). Right now you can do so by either making use of a service to host or build your CRNA app or by ejecting. At the moment, Exponent is the only provider we're aware of that offers [hosting](https://docs.getexponent.com/versions/latest/guides/how-exponent-works.html#publishing-deploying-an-exponent-app-in-production) and [build services](https://docs.getexponent.com/versions/latest/guides/building-standalone-apps.html) for CRNA apps, but we'll definitely update this section as we become aware of others.
15
+
You may also want to distribute your app to coworkers, friends, or customers (shocking!). Right now you can do so by either making use of a service to host or build your CRNA app or by ejecting. At the moment, Expo is the only provider we're aware of that offers [hosting](https://docs.expo.io/versions/latest/guides/how-exponent-works.html#publishingdeploying-an-exponent-app-in-production) and [build services](https://docs.expo.io/versions/latest/guides/building-standalone-apps.html) for CRNA apps, but we'll definitely update this section as we become aware of others.
16
16
17
17
If you do need to eject to build your own distribution package or to include your own native code, there are two options at this time. To use either option, make sure to have the appropriate [Xcode and/or Android Studio environment](https://facebook.github.io/react-native/docs/getting-started.html) configured.
18
18
@@ -26,19 +26,19 @@ npm i -g react-native-cli
26
26
yarn global add react-native-cli
27
27
```
28
28
29
-
Also, please note that if you did make use of any Exponent APIs before ejecting, you'll need to remove or replace them.
29
+
Also, please note that if you did make use of any Expo APIs before ejecting, you'll need to remove or replace them.
30
30
31
-
### Ejecting to ExponentKit
31
+
### Ejecting to ExpoKit
32
32
33
-
Using ExponentKit will allow you to continue using Exponent APIs along with building your own native code, but it requires an Exponent account and use of Exponent developer tools.
33
+
Using ExpoKit will allow you to continue using Expo APIs along with building your own native code, but it requires an Expo account and use of Expo developer tools.
34
34
35
-
Because this ejection process essentially produces a custom build of the Exponent client app, you don't need to modify any of your app's code, but you do still need to have an Xcode/Android Studio environment, along with `react-native-cli` and either [Exponent XDE](https://docs.getexponent.com/versions/latest/introduction/installation.html) or [`exp`](https://docs.getexponent.com/versions/latest/guides/exp-cli.html).
35
+
Because this ejection process essentially produces a custom build of the Expo client app, you don't need to modify any of your app's code, but you do still need to have an Xcode/Android Studio environment, along with `react-native-cli` and either [Expo XDE](https://docs.expo.io/versions/latest/introduction/installation.html) or [`exp`](https://docs.expo.io/versions/latest/guides/exp-cli.html).
36
36
37
37
## Specific Motivations
38
38
39
39
### React Native Link
40
40
41
-
If you need to include a library which includes `react-native link` in its install instructions, there's a good chance you need to eject from CRNA. That said, there are JavaScript-only options available for a number of tasks, including some that are [built into the Exponent app](https://docs.getexponent.com/versions/latest/sdk/index.html) that CRNA uses to run your project.
41
+
If you need to include a library which includes `react-native link` in its install instructions, there's a good chance you need to eject from CRNA. That said, there are JavaScript-only options available for a number of tasks, including some that are [built into the Expo app](https://docs.expo.io/versions/latest/sdk/index.html) that CRNA uses to run your project.
42
42
43
43
TODO write a table of common needs in RN apps that can be done from JS
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ $ cd my-app/
18
18
$ npm start
19
19
```
20
20
21
-
Install the [Exponent](https://getexponent.com) app on your iOS or Android phone, and use the QR code in the terminal to open your app. When you're ready to share your project with others (for example, by deploying to an app store), read the [Sharing & Deployment](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#sharing-deployment) section of the User Guide.
21
+
Install the [Expo](https://expo.io) app on your iOS or Android phone, and use the QR code in the terminal to open your app. When you're ready to share your project with others (for example, by deploying to an app store), read the [Sharing & Deployment](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#sharing-deployment) section of the User Guide.
22
22
23
-
Create React Native App allows you to work with all of the [Components and APIs](https://facebook.github.io/react-native/docs/getting-started.html) in React Native, as well as most of the [JavaScript APIs](https://docs.getexponent.com/versions/latest/sdk/index.html) that the Exponent App provides.
23
+
Create React Native App allows you to work with all of the [Components and APIs](https://facebook.github.io/react-native/docs/getting-started.html) in React Native, as well as most of the [JavaScript APIs](https://docs.expo.io/versions/latest/sdk/index.html) that the Expo App provides.
24
24
25
25
## Sections
26
26
@@ -63,7 +63,7 @@ If you're familiar with React Native already, you won't find any `ios` or `andro
63
63
64
64
Runs your app in development mode.
65
65
66
-
Open it in the [Exponent app](https://getexponent.com) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
66
+
Open it in the [Expo app](https://expo.io) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
67
67
68
68
#### `npm test`
69
69
@@ -100,11 +100,11 @@ The main limitation of a CRNA project is that it must be written in pure JavaScr
100
100
101
101
Apps made with Create React Native App support everything in the Components and APIs sections of the [React Native Documentation](https://facebook.github.io/react-native/docs/getting-started.html).
102
102
103
-
Apps made with Create React Native App also support most of the JavaScript-to-Native APIs provided by the [Exponent SDK](https://docs.getexponent.com/versions/latest/sdk/index.html), since they are loaded by the Exponent app.
103
+
Apps made with Create React Native App also support most of the JavaScript-to-Native APIs provided by the [Expo SDK](https://docs.expo.io/versions/latest/sdk/index.html), since they are loaded by the Expo app.
104
104
105
105
If you're sure that you need custom native code, please read the [ejecting guide](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md).
106
106
107
-
If you need to build IPAs and APKs for publishing to the App Store and/or Play Store, you can either eject (see above guide) and build them yourself using Xcode and Android Studio, or you can use a service like [Exponent's standalone app builds](https://docs.getexponent.com/versions/v13.0.0/guides/building-standalone-apps.html) to publish your pure JS app.
107
+
If you need to build IPAs and APKs for publishing to the App Store and/or Play Store, you can either eject (see above guide) and build them yourself using Xcode and Android Studio, or you can use a service like [Expo's standalone app builds](https://docs.expo.io/versions/v13.0.0/guides/building-standalone-apps.html) to publish your pure JS app.
Copy file name to clipboardExpand all lines: VERSIONS.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ Apps built with Create React Native App rely on three project dependencies:
4
4
5
5
*`react-native` provides the core React Native functionality
6
6
*`react` is a peer dependency of `react-native`
7
-
*`exponent` makes CRNA projects compatible with the Exponent client app, and also provides access to several native APIs through JavaScript
7
+
*`expo` makes CRNA projects compatible with the Expo client app, and also provides access to several native APIs through JavaScript
8
8
9
-
The `app.json` file in a CRNA project also specifies `sdkVersion` which is necessary for the Exponent client to provide the correct native API versions.
9
+
The `app.json` file in a CRNA project also specifies `sdkVersion` which is necessary for the Expo client to provide the correct native API versions.
10
10
11
11
Each version of these dependencies is only compatible with a narrow version range of the other two. See the below table for the correct versions to use with each other:
12
12
13
-
|`react-native`|`react`|`exponent`|`sdkVersion` in app.json |
Copy file name to clipboardExpand all lines: react-native-scripts/src/scripts/android.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,17 @@ async function startAndroidAndPrintInfo() {
25
25
26
26
qr.generate(address,qrCode=>{
27
27
console.log(
28
-
`To view your app with live reloading, point the Exponent app to this QR code. You'll find the QR scanner on the Projects tab of the app, under the '+' menu.
28
+
`To view your app with live reloading, point the Expo app to this QR code. You'll find the QR scanner on the Projects tab of the app, under the '+' menu.
29
29
30
30
${indent(qrCode,2)}
31
31
32
-
Or enter this address in the Exponent app's search bar:
32
+
Or enter this address in the Expo app's search bar:
33
33
34
34
${chalk.underline(chalk.cyan(address))}
35
35
36
36
Your phone will need to be on the same local network as this computer.
37
37
38
-
For links to install the Exponent app, please visit ${chalk.underline(chalk.cyan('https://getexponent.com'))}.
38
+
For links to install the Expo app, please visit ${chalk.underline(chalk.cyan('https://expo.io'))}.
39
39
40
40
Logs from serving your app will appear here. Press Ctrl+C at any time to stop.
0 commit comments