Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

[BUG] null is not an object (evaluating 'RNDominantColor.getColorFromURL') #10

@wobsoriano

Description

@wobsoriano

Trying to test in both bare and managed workflow expo app with RN v0.62.2. Happens in both ios and android.

Code:

getColorFromURL('https://randomuser.me/api/portraits/men/37.jpg')
        .then((colors) => {
          console.log(colors.primary);
        })
        .catch((err) => {
          console.log(err);
        });

Got this error:

null is not an object (evaluating 'RNDominantColor.getColorFromURL')
- node_modules/rn-dominant-color/index.js:9:21 in Promise$argument_0
- node_modules/promise/setimmediate/core.js:45:6 in tryCallTwo
- node_modules/promise/setimmediate/core.js:200:22 in doResolve
- node_modules/promise/setimmediate/core.js:66:11 in Promise
- node_modules/rn-dominant-color/index.js:8:11 in getColorFromURL
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:135:14 in _callTimer
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:387:16 in callTimers
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:425:19 in __callFunction
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:6 in __guard$argument_0
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:373:10 in __guard
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:111:4 in callFunctionReturnFlushedQueue
* [native code]:null in callFunctionReturnFlushedQueue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions