Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React-Native Warning: Overwriting font Family style attribute preprocessor

$
0
0

I'm getting the following warning:

"Overwriting font Family style attribute preprocessor" coming out from StyleSheet.js when running the app on iOS simulator. I haven't tested on Android yet though.

App.tsx

import { StatusBar } from 'expo-status-bar';import React from 'react';import { StyleSheet, Text, View } from 'react-native';export default function App() {  return (<View style={styles.container}><Text>Open up App.js to start working on your app!</Text><StatusBar style="auto" /></View>  );}const styles = StyleSheet.create({  container: {    flex: 1,    backgroundColor: '#fff',    alignItems: 'center',    justifyContent: 'center',  },});

package.json

{"main": "index.js","scripts": {"android": "expo run:android","ios": "expo run:ios","web": "expo start --web","start": "react-native start"  },"dependencies": {"expo": "~43.0.0","expo-splash-screen": "~0.13.3","expo-status-bar": "~1.1.0","expo-updates": "~0.10.5","react": "17.0.2","react-dom": "17.0.1","react-native": "0.66.1","react-native-gesture-handler": "~1.10.2","react-native-reanimated": "~2.2.0","react-native-safe-area-context": "3.3.2","react-native-screens": "~3.8.0","react-native-web": "0.17.1"  },"devDependencies": {"@babel/core": "^7.12.9","@types/react": "^17.0.32","@types/react-native": "^0.66.1","typescript": "^4.4.4"  },"private": true}

enter image description here

Is it a package problem?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>