I\'m trying to run this simple react-native-dominant-color api in react-native and getting this error