Skip to content

Commit

Permalink
remove refs to local CLI/ ejecting
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-kurak committed Aug 11, 2022
1 parent d918ba0 commit 985a4fc
Show file tree
Hide file tree
Showing 42 changed files with 56 additions and 67 deletions.
9 changes: 4 additions & 5 deletions blank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@

- Install packages with `yarn` or `npm install`.
- If you have native iOS code run `npx pod-install`
- Run `expo start` to start the bundler.
- Run `npx expo start` to start the bundler.
- Open the project in a React runtime to try it:
- iOS: [Client iOS](https://itunes.apple.com/app/apple-store/id982107779)
- Android: [Client Android](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=blankexample)
- Web: Any web browser

## Adding Native Code
## Running/ Modifying Native Code

This project can be run from a web browser or the Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.
You can generate native iOS and android projects from your Expo config file (**app.json**/ **app.config.js**) by runnning `npx expo prebuild`. These native projects can then be compiled and run via XCode and Android Studio.

- Run `expo eject` to create the native projects.
- You can still run your project in the web browser or Expo client, you just won't be able to access any new native modules you add.
> 💡 Learn more about [native code in Expo](https://docs.expo.dev/workflow/customizing/)
## Publishing

Expand Down
2 changes: 1 addition & 1 deletion navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## 🚀 How to use

- Install packages with `yarn` or `npm install`.
- Run `expo start` to start the bundler.
- Run `npx expo start` to start the bundler.
- Open the project in a React runtime to try it:
- iOS: [Client iOS](https://itunes.apple.com/app/apple-store/id982107779)
- Android: [Client Android](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=blankexample)
Expand Down
14 changes: 7 additions & 7 deletions upgrade-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
if [ "$1" == "" ] || [ "$1" == "--help" ]; then
echo "Available flags:"
echo "--help"
echo "--run-expo-upgrade - run yarn and expo upgrade to update to latest SDK on all examples"
echo "--run-fix-dependencies - run expo doctor --fix-dependencies on all repos"
echo "--run-expo-upgrade - run yarn and expo-cli upgrade to update to latest SDK on all examples"
echo "--run-fix-dependencies - run npx expo install --fix on all repos"
exit 0
fi

if [ "$1" == "--run-expo-upgrade" ]; then
echo "Upgrading all projects to the latest SDK..."
echo "For each example, this will run `yarn` and then run `expo upgrade`, accepting all defaults."
echo "For each example, this will run `yarn` and then run `expo-cli upgrade`, accepting all defaults."
echo "Upgrade logs will be written to .sdk-upgrade-logs."

mkdir ./.sdk-upgrade-logs
Expand All @@ -20,14 +20,14 @@ if [ "$1" == "--run-expo-upgrade" ]; then
echo "• Run yarn"
(cd $DIRNAME && yarn --silent) # If yarn fails spectacularly, we'll see evidence in the logs for expo upgrade
echo "• Run expo upgrade"
(cd $DIRNAME && echo y | expo upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
done

# yarn workspaces has example(s) inside of app folder
echo "• Run expo upgrade on apps inside with-yarn-workspaces"
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces
for d in with-yarn-workspaces/apps/*/ ; do
(cd $DIRNAME && echo y | expo upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
done

echo "Upgrades complete! Check .sdk-upgrade-logs for results. Be sure to correct any errors or warnings."
Expand All @@ -41,13 +41,13 @@ if [ "$1" == "--run-fix-dependencies" ]; then
for d in */ ; do
DIRNAME=${d%/}
echo "Fixing dependencies on $DIRNAME..."
(cd $DIRNAME && expo doctor --fix-dependencies)
(cd $DIRNAME && npx expo install --fix)
done

echo "Fixing dependencies on apps inside with-yarn-workspaces..."
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces
for d in with-yarn-workspaces/apps/*/ ; do
(cd $DIRNAME && expo doctor --fix-dependencies)
(cd $DIRNAME && npx expo install --fix)
done

echo "Dependency fixes complete!"
Expand Down
2 changes: 1 addition & 1 deletion with-apollo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## 🚀 How to use

- Install with `yarn` or `npm install`.
- Run `expo start` to try it out.
- Run `npx expo start` to try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- Create your own app on [Auth0](https://auth0.com).
- Add the `AuthSession` auth URL to `Allowed Callback URLs` on Auth0.
- Open `App.js` and replace `auth0ClientId` and `auth0Domain` with your app settings.
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

#### AuthSession callback URL

Expand Down
2 changes: 1 addition & 1 deletion with-aws-storage-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Try it at https://exp.host/@ykbryan/aws-storage-upload
### Running the app

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
2 changes: 1 addition & 1 deletion with-camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example shows how to take a picture and display it.

- Install packages with `yarn` or `npm install`.
- If you have native iOS code run `npx pod-install`
- Run `expo start` to start the bundler.
- Run `npx expo start` to start the bundler.
- Open the project in a React runtime to try it:
- iOS: [Client iOS](https://itunes.apple.com/app/apple-store/id982107779)
- Android: [Client Android](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=blankexample)
Expand Down
2 changes: 1 addition & 1 deletion with-drawer-navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## 🚀 How to use

- Install with `yarn` or `npm install`.
- Run `expo start` to try it out.
- Run `npx expo start` to try it out.

## 📝 Notes

Expand Down
3 changes: 1 addition & 2 deletions with-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
"web": "expo start --web"
},
"dependencies": {
"@expo/electron-adapter": "~0.0.55",
Expand Down
2 changes: 1 addition & 1 deletion with-facebook-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Try it at https://expo.dev/@community/with-facebook-auth
### Running the app

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Press "Open FB Auth" in the app and then check your logs. Take the `redirectUrl` that was logged and enter it into the "Valid OAuth redirect URIs" in your Facebook app configuration step below.

### Setting up the Facebook app
Expand Down
2 changes: 1 addition & 1 deletion with-firebase-saml-login/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ As this example relies on Firebase authentication you must have a Firebase proje
## Running the app

- Run `yarn` or `npm install`
- Run `expo start` in the root directory to start the development server.
- Run `npx expo start` in the root directory to start the development server.

## The idea behind the example

Expand Down
2 changes: 1 addition & 1 deletion with-firebase-storage-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This example demonstrates how you can upload images (and other files) to Firebas
## 🚀 How to use

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Take a new picture or upload one from your library
- See the image being rendered from Firebase

Expand Down
2 changes: 1 addition & 1 deletion with-formdata-image-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Running the app

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

### Running the server

Expand Down
2 changes: 1 addition & 1 deletion with-formik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## 🚀 How to use

- Install packages with `yarn` or `npm install`.
- Run `expo start` to try it out.
- Run `npx expo start` to try it out.

## 📝 Notes

Expand Down
1 change: 0 additions & 1 deletion with-gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"web": "gatsby develop",
"build:web": "gatsby build",
"serve:web": "gatsby serve"
Expand Down
2 changes: 1 addition & 1 deletion with-magic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Install with `yarn` or `npm install`.
- Create your own app on [Magic.link](https://magic.link).
- Open `App.js` and replace `MAGIC_KEY` with your publishable key.
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
9 changes: 4 additions & 5 deletions with-maps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
## 🚀 How to use

- Install packages with `yarn` or `npm install`.
- Run `expo start` or `npm start` to start the bundler.
- Run `npx expo start` or `npm start` to start the bundler.
- Open the project in a React runtime to try it:
- iOS: [Client iOS](https://itunes.apple.com/app/apple-store/id982107779)
- Android: [Client Android](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=blankexample)

## Adding Native Code
## Running/ Modifying Native Code

This project can be run from Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.
You can generate native iOS and android projects from your Expo config file (**app.json**/ **app.config.js**) by runnning `npx expo prebuild`. These native projects can then be compiled and run via XCode and Android Studio.

- Run `expo eject` to create the native projects.
- You can still run your project on Expo client, you just won't be able to access any new native modules you add.
> 💡 Learn more about [native code in Expo](https://docs.expo.dev/workflow/customizing/)
## Publishing

Expand Down
11 changes: 4 additions & 7 deletions with-moti/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- Install packages with `yarn` or `npm install`.
- If you have native iOS code run `npx pod-install`
- Run `expo start` to start the bundler.
- Run `npx expo start` to start the bundler.
- Open the project in a React runtime to try it:
- iOS: [Client iOS](https://itunes.apple.com/app/apple-store/id982107779)
- Android: [Client Android](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=blankexample)
Expand All @@ -33,16 +33,13 @@
Moti is built with TypeScript and has first-class support. Here's how to add TS support to your project:

- Rename `App.js``App.tsx`
- Run `expo start` -- TypeScript will be automatically configured.
- Run `npx expo start` -- TypeScript will be automatically configured.

> 💡 Learn more about [TypeScript in Expo](https://docs.expo.dev/guides/typescript/)
### Adding Native Code
## Running/ Modifying Native Code

This project can be run from a web browser or the Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.

- Run `expo eject` to create the native projects.
- You can still run your project in the web browser or Expo client, you just won't be able to access any new native modules you add.
You can generate native iOS and android projects from your Expo config file (**app.json**/ **app.config.js**) by runnning `npx expo prebuild`. These native projects can then be compiled and run via XCode and Android Studio.

> 💡 Learn more about [native code in Expo](https://docs.expo.dev/workflow/customizing/)
Expand Down
2 changes: 1 addition & 1 deletion with-native-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
npx create-react-native-app -t with-native-base
```

- Run `expo start`, try it out.
- Run `npx expo start`, try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-postpublish-hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ It's common to need to perform a set of tasks once you publish an update to your
#### Running the app

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
2 changes: 1 addition & 1 deletion with-processing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Example demonstrating use of the [`processing-js`](https://github.com/processing
## 🚀 How to use

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-react-native-elements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Example demonstrating use of the [`react-native-elements`][rne] library in Expo.
## 🚀 How to use

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-react-three-fiber/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Create Three.js projects using React components and props!
> `npx create-react-native-app my-app -t with-react-three-fiber`
- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-reanimated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
> `npx create-react-native-app my-app -t with-reanimated`
- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
4 changes: 2 additions & 2 deletions with-socket-io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ This example shows how to connect and interact with socket-io backends.

- Run `yarn` or `npm install`
- Open `App.js` and change the `socketEndpoint` at the top of the file to point to your endpoint.
- Open `app` with [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Open `app` with [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

### Running the server

- `cd` into the `backend` directory and run `yarn` or `npm install`, then run `expo start`
- `cd` into the `backend` directory and run `yarn` or `npm install`, then run `npx expo start`
- Install [ngrok](https://ngrok.com/download) and run `ngrok http 3000` and copy the https url that looks something like this `https://f7333e87.ngrok.io`.

## 📝 Notes
Expand Down
2 changes: 1 addition & 1 deletion with-splash-screen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This example shows you how to create an animated splash screen for your app. It
## 🚀 How to use

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Wait until the app is built and downloaded. Press "run again" to reload the app and splash screen.

## 📝 Notes
Expand Down
2 changes: 1 addition & 1 deletion with-sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inserting items, querying and displaying results, using prepared statements.
## 🚀 How to use

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const text = () => ( /_ Example JSX _/ );

```

- Now run `expo start` to see it in action!
- Now run `npx expo start` to see it in action!

### 📁 File Structure

Expand Down
2 changes: 1 addition & 1 deletion with-styled-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## 🚀 How to use

- Install with `yarn` or `npm install`.
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-svg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Import SVG files directly as React components.
### Running the app

- Run `yarn` or `npm install`
- Run [`expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.
- Run [`npx expo start`](https://docs.expo.dev/versions/latest/workflow/expo-cli/), try it out.

### Setup

Expand Down
2 changes: 1 addition & 1 deletion with-tab-navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## 🚀 How to use

- Install with `yarn` or `npm install`.
- Run `expo start` to try it out.
- Run `npx expo start` to try it out.

## 📝 Notes

Expand Down
3 changes: 1 addition & 2 deletions with-tab-navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
"web": "expo start --web"
},
"private": true
}
2 changes: 1 addition & 1 deletion with-tailwindcss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## 🚀 How to use

- Install with `yarn` or `npm install`.
- Run `expo start` to try it out.
- Run `npx expo start` to try it out.

## 📝 Notes

Expand Down
2 changes: 1 addition & 1 deletion with-tfjs-camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Identify objects in real time using `@tensorflow/tfjs`, `expo-camera`, and `expo

> `npx create-react-native-app my-app -t with-tfjs-camera`
- Run `expo start`, open on a native device (simulator, emulator, and browser are not supported).
- Run `npx expo start`, open on a native device (simulator, emulator, and browser are not supported).
- You can swap out `@tensorflow-models/mobilenet` for another [TensorFlow model](https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md) to achieve different results.

## 📝 Notes
Expand Down

0 comments on commit 985a4fc

Please sign in to comment.