From 596988cc93da6eba4a3e88e9796290ec557c9f67 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Thu, 29 Sep 2022 23:38:58 -0700 Subject: [PATCH] Update Expo instructions in README to standard template (#567) --- README.md | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index fb4f877..a2ba8de 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,12 @@ The second option is to use the inlined picker. Place it in a View or a custom m - If using React Native 0.64, 0.64.2 or later must be used. - If using Expo, SDK 42 or later must be used. If using Expo SDK 44, 44.0.4 or later must be used. -## Installation +## Expo + +- ✅ You can use this library with [Development Builds](https://docs.expo.dev/development/introduction/). No config plugin is required. +- ❌ This library can't be used in the "Expo Go" app because it [requires custom native code](https://docs.expo.dev/workflow/customizing/). -If you're using expo, follow these steps instead. +## Installation 1. Download package with npm or yarn @@ -74,33 +77,6 @@ npx react-native run-ios If you're having troubles after following these steps, there might be a linking issue. -## Using Expo - -Expo is supported by creating a custom client. - -1. Create the custom client: - -``` -expo install react-native-date-picker expo-dev-client -``` - -2. Build the app - -Locally - -``` -expo run:ios -expo run:android -``` - -Or in the cloud - -``` -eas build -p all --profile development -``` - -If you're having troubles, read the pinned comment here. - ## Example 1: Modal ```jsx