Creating a complete authentication flow using context-api. (Step-by-step)
This flow can be replicated to React-JS (Web)
npx react-native init reactNativeAuth --template react-native-template-typescript
#!/usr/bin/env bash | |
set -eox pipefail | |
curl -Ls "https://get.maestro.mobile.dev" | bash | |
export PATH="$PATH":"$HOME/.maestro/bin" | |
brew install java | |
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc | |
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk |
#------------------ | |
# Shell Variables | |
#------------------ | |
# Specify VS Code as default editor for the React Native Simulator | |
export REACT_EDITOR=code-insiders | |
# Set VS Code Insiders as default code editor | |
export EDITOR=code-insiders | |
# Android SDK | |
export ANDROID_HOME=~/Library/Android/sdk |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// Choose either "stable" for receiving highly polished, | |
// or "canary" for less polished but more frequent updates | |
updateChannel: 'stable', |