【问题标题】:Phone doesnt show all text on react-native (Expo)电话不显示反应原生(世博会)上的所有文本
【发布时间】:2020-05-07 14:44:22
【问题描述】:

我对输出文本有疑问:

这只是一个空白的 react native 代码。

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>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

the result on lg-g4

Insted 显示“打开 App.js 开始开发您的应用程序!”在世博会应用程序上,

我只得到“打开 App.js 开始工作”。

手机可以与任何其他应用程序正常工作(不响应本机)。 反应本机应用程序功能适用于手机。 如果我从样式中注释掉“alignItems:'center'”,它看起来是正确的.. 我能做什么?

谢谢!

【问题讨论】:

    标签: android reactjs react-native text expo


    【解决方案1】:

    用空格试试一次

    <Text>Open up App.js to start working on your app!                 </Text>
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 2019-04-09
    • 2021-03-01
    • 2022-01-17
    • 2020-05-17
    • 2021-02-02
    相关资源
    最近更新 更多