我可以记录数据,但似乎不能显示它,屏幕完全空白。我没有收到任何错误,但屏幕上还是什么都没有 import React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import firestore from '@react-native-firebase/firestore';
import { FlatList } from 'react-native-gesture-handler';
export default class St
我没有错误显示,但当我的应用程序运行时,我得到一个空白页面。当我从另一个项目中复制并粘贴一些api代码时,它开始呈现一个空白页面,在这个项目中,它工作得非常完美,但由于某些原因,它拒绝在这里工作这就是我的代码的样子。这是我的App.js文件 import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import Screen from './app/components/Screen'
import ProductScreen from
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'
我对本地人的反应是完全陌生的。所以请为非常天真的问题向我道歉。
我有一个主屏幕,它有一个按钮。当按下按钮时,我想通过另一个组件获取数据并在屏幕上显示。
我有App.js
import React from 'react';
import { Button, View, Text } from 'react-native';
import { createAppContainer, createStackNavigator } from 'react-navigation'; // Version can be specified in packa
这是一个常见的问题,但不知怎的,我已经尝试了我能找到的所有解决方案,但仍然收到了这个警告。
VirtualizedList: You have a large list that is slow to update - make sure your renderItem
function renders components that follow React performance best practices like
PureComponent, shouldComponentUpdate, etc. {"contentLength": 5200, "dt
我在react-native中使用了深度链接,以便将用户重定向到youtube频道。但是当我返回到我的应用程序时,我有一个空白屏幕,我如何让用户返回到homeScreen? 这是我的youtube代码: import React from 'react';
import { View, Text, Linking } from 'react-native';
import Acceuil from './Accueil';
class ChaineYT extends React.Component {
state = {
i