我完全是react原生的新手,我正在努力学习它。我想从SQLite中获取结果,并将它们弹出到数组中,然后我可以在平面列表中使用它们来显示。以下是我的代码:
//imports
import React,{Component} from 'react';
import {View,Text,FlatList} from 'react-native';
//create component
var SQLite = require('react-native-sqlite-storage')
var db=SQLite.openDa
当我将一些平面列表分成不同的组件时,我遇到了一个问题。如何像示例表单(图片“示例UI")那样安排渲染平面列表?我试过了,但不起作用。它呈现了平面列表A,然后是平面列表B。请帮我解决它。有其他方法可以解决这个问题。谢谢。
我的代码在这里。
标头组件
import React, {Component} from 'react'
import {View,Text,StyleSheet,FlatList,Image} from 'react-native'
import data from '../data/FlatListData.json'
我正在使用带有laravel后端的react native,所以我只想从laravel加载列表,因此我像这样编写代码
constructor() {
super();
this.state = {
data:[
{
student_name: '',
class:'',
section:'',
},
],
}
//id is also in state and i get it's value f
我尝试让我的函数从url中填充文本,但它不会产生任何输出,我想要添加从url或url中获取的文本,并将其填充到一个反应性的本机平面列表中,这就是我的尝试。
import { createDrawerNavigator } from "@react-navigation/drawer";
import { NavigationContainer } from "@react-navigation/native";
import * as React from "react"
import { useEffect } from "react
我正在尝试将安装到我现有的iOS React本地应用程序中。我的应用程序已经使用了各种Firebase包(app、auth、firestore等)。
我正在按照导游的指示行事。我试过自动安装和手动安装。但是当我运行pod install时,我得到了以下错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
Firebase/MLVisionTextModel was resolved to 5.0.0, which depends on
Bundling `index.js` [development, non-minified] 0.0% (0/1), failed.
error: bundling failed: ambiguous resolution: module `C:\Users\mtlok\Desktop\RN2\pep_beta\index.js` tries to require `react-native`, but there are several files providing this module. You can delete or fix them:
* `C:\Users\mtl