我正在为第一次使用的用户做一个欢迎列表,我有一个要显示的图像和文本,但它没有渲染任何图像,我做错了什么?当我将路径放入视图中时,它可以正常工作,但当我放入imagePath时,它会显示一个空白屏幕 import React from 'react';
import {
View,
Text,
Image,
TouchableOpacity,
FlatList,
} from 'react-native';
import ProgressCircle from 'react-native-progress-circle';
i
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'
当我将一些平面列表分成不同的组件时,我遇到了一个问题。如何像示例表单(图片“示例UI")那样安排渲染平面列表?我试过了,但不起作用。它呈现了平面列表A,然后是平面列表B。请帮我解决它。有其他方法可以解决这个问题。谢谢。
我的代码在这里。
标头组件
import React, {Component} from 'react'
import {View,Text,StyleSheet,FlatList,Image} from 'react-native'
import data from '../data/FlatListData.json'
我正在使用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