react-native-image-colors: Evaluating 'ImageColorsModule.getColors' error
Hi, I am getting the following error when trying to fetch colors from an image: `[Unhandled promise rejection: TypeError: null is not an object (evaluating ‘ImageColorsModule.getColors’)]
- node_modules/react-native-image-colors/index.js:7:26 in ImageColors.getColors`
The object (or the url of the image) is not null.
Looks like an awesome library and I really hope I can make it work 😃
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (6 by maintainers)
Sorry, this library is using native code therefore it’s not compatible with expo managed projects. You have to eject to install it.
Edit: this library can now be compatible with expo managed projects using the
prebuildcommand. See latest docs.Hello @osamaqarem thanks for you help, I am going to do this.
Hello,
Thank you for this wonderful library.
In order to make it compatible with Expo, could you please confirm that this sequence of steps is in the right order ?
npx create-expo-app ExpoProject
cd ExpoProject
expo prebuild
npm install react-native-image-colors
npm start
Thank you