我正在做一个项目,在呈现JSON文件中的文本时遇到了一个问题。似乎我正确地处理了JSON,但是我似乎不能理解为什么文本是垂直显示的。以下是我的代码
import React, { Component } from 'react';
import jsonquotes from "../../../assets/quotes.json";
import { FlatList, View, Text } from 'react-native';
const text = jsonquotes[Math.floor(Math.random()*jso
import React,{Component} from 'react';
import { Flatlist, Text, View} from 'react-native';
export default class List extends Component {
state={
person:[{name:'abhjeet'},{name:'shubham'},{name:'kamal'},{name:'devesh'},{name:'ashu'
我正在使用Axios对.NET核心API进行API调用,该调用来自一个。在一个屏幕上,我有类似的代码运行得很好,但是它在这里不能工作,并抛出一个错误:
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'request.title')]
at node_modules\react-native\Libraries\Lists\FlatList.js:597:25 in renderer
at node_modules\react-native\Libraries\Lis