https://github.com/authgear/authgear-demo-app-rn
https://github.com/authgear/authgear-demo-app-rn
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/authgear/authgear-demo-app-rn
- Owner: authgear
- Created: 2022-07-14T08:24:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T11:46:03.000Z (over 1 year ago)
- Last Synced: 2024-12-29T08:20:58.365Z (over 1 year ago)
- Language: TypeScript
- Size: 1.36 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authgear React Native Demo App
This app is for demonstrating the usage of functions supportted by @authgear/react-native SDK.
# Initial setup
## Environment Setup
Please read the environment setup guildlines by the official react-native team
See [https://reactnative.dev/docs/environment-setup](https://reactnative.dev/docs/environment-setup)
## Install dependencies
```bash
# In root of React Native demo app
npm ci
```
## Start Metro server
```bash
# In root of React Native demo app
npm start
```
## Build Android app
1. By command line
```bash
# In root of React Native demo app
npm run android
```
2. By Android Studio
i. Open the `android` folder using Android Studio
ii. Select device to build the app on
iii. Click the `Run` button (play button)
## Build IOS App
1. Install CocoaPods dependencies
```bash
# In root of React Native demo app
cd ios && pod install && cd ..
```
NOTE: make sure you enabled XCode command line tools (XCode Preference -> Location -> Command Line Tools)
2. Build by command line
```bash
# In root of React Native demo app
npm run ios
```
3. Build by Xcode
i. Configure `Signing and Capabilities` in XCode for signing the app
ii. Click `Build` button in XCode (play button)