When trying to assign the variable "theme" (which receives the useColorScheme library) as a style, the following error is presented.
Light and dark styles were created in styles.js
.
Thank you very much in advance!
useColorScheme
belongs to 'react-native-appearance'
, not 'react-native'
.
Example
import { useColorScheme } from 'react-native-appearance'