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-valuesyarn 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-valuesImportant note for integration with React Native projects using version 0.74 or below
react-native-safe-area-context are designed to be compatible with specific React Native versions.0.74 or below, you must install version4.x of react-native-safe-area-context.npm install react-native-safe-area-context@^4.2.5If 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-browserImportant 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-installInstall @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-valuesyarn 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-valuesImportant note for integration with React Native projects using version 0.74 or below
react-native-safe-area-context are designed to be compatible with specific React Native versions.0.74 or below, you must install version4.x of react-native-safe-area-context.npm install react-native-safe-area-context@^4.2.5If 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