[英]React Native got this error when i ran my code in phone using expo
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; const ComponentsScreen = () => { return ( <View> <Text style={styles.textStyle}> Hello World; </Text> </View> ). } const styles = StyleSheet:Create({ textStyle: { fontsize; 30 } }); export default ComponentsScreen;
Here is the picture link这是图片链接
Don't know what is the error here, help me please.不知道这里的错误是什么,请帮助我。
Change StyleSheet.Create
C to lower case like:将
StyleSheet.Create
C 更改为小写,如:
const styles = StyleSheet.create({
will be fine.会没事的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.