codemotionapps/react-native-dark-mode

useDarkModeContext context.js:28:31

Closed this issue · 5 comments

i have no idea where was go wrong .
i got a red Page , showing "Invariant Violation: Invalid hook call "

What version of React Native are you using?

"react": "16.8.6",
"react-native": "0.60.5",

Did you call the function inside a functional component?

I don't have functional component .

myComponent extends Component

how to use react-native-dark-mode in myComponent ?