Recién comencé a aprender React Native y quería agregar styleSheet, parece que no funciona, estoy tratando de resolver un problema pero todavía estoy atascado, ¿alguien puede ayudarme a resolver este problema? por cierto, estoy usando reaccionar nativo.
Registro de la consola
aquí está mi código a continuación:
const styles = StyleSheet.create({ container: { flex: 1, marginTop: 100, paddingTop: 20, paddingBottom: 30, justifyContent: 'center', alignItems: 'center', }, tinyPic: { width: 90, height: 90, top: -10 }, gauge: { position: 'absolute', width: 140, height: 140, alignItems: 'center', justifyContent: 'center', }, label1: { position: 'absolute', top:15, right: '115%', padding: 4 }, label2: { position: 'absolute', top:15, left: '115%', padding: 4 }, label3: { position: 'absolute', top: 145, left: '95%', padding: 4 } });Resuelvo este problema actualizando react-native :
npm i https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz --save -force