Error with AWS Amplify React Native - Missing React Native Vector Icons dependency
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior?
error when running project when using withAuthenticator
HOC with aws-amplify-react-native
dependency.
Module 'react-native-vector-icons/MaterialIcons' does not exist in the Haste module map.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than AWS Amplify.
- Create React Native project
- Initialize Amplify project
- Install
aws-amplify
&aws-amplify-react-native
dependencies - Use
withAuthenticator
HOC
What is the expected behavior? Project compiles
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions? AWS Amplify React Native Version: 2.0.0 AWS Amplify version: 1.0.8
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG';
in your app.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@builtbyproxy yes it does look like #1543 should have fixed this.
Just to come back around and update this issue:
This will not error out when using the Create React Native App CLI because this CLI (Expo) ships with React Native Vector Icons already included.
This is only an issue for developers creating an app using the React Native CLI.