Dependencies
Packages
@aws-amplify/ui-react-native
is compatible for usage with the React Native apps created using the React Native CLI or Expo.
Install @aws-amplify/ui-react-native
and its dependencies with npm or yarn:
npm install @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
yarn add @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
If your project will support Federated Sign In using the React Native Authenticator
the @aws-amplify/rtn-web-browser
package is also required:
npm install @aws-amplify/rtn-web-browser
Important note for integration with React Native projects using version 0.72
or below
0.72
or below@aws-amplify/react-native
and @aws-amplify/rtn-web-browser
require a minimum iOS deployment target of 13.0
, open the Podfile located in the ios directory and update the target
value:
- platform :ios, min_ios_version_supported
+ platform :ios, 13.0
Then install the iOS cocoapods by running:
npx pod-install
Install @aws-amplify/ui-react-native
and its dependencies with npm or yarn:
npm install @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
yarn add @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
If your project will support Federated Sign In using the React Native Authenticator
the @aws-amplify/rtn-web-browser
package is also required:
npm install @aws-amplify/rtn-web-browser