Friday, December 2, 2022
HomeiOS DevelopmentReact Native NOT rendering knowledge from database on IOS

React Native NOT rendering knowledge from database on IOS

I’ve drawback with render knowledge on IOS Simulator. Render is figure correctly on web site, however on IOS i nonetheless acquired stucked on “Loading..” textual content.

Right here is my code code

import React from 'react'
import { useState } from 'react';
import { useEffect } from 'react';
import { SafeAreaView, Textual content, View, StyleSheet, Picture, Alert } from 'react-native';
import { Card } from 'react-native-paper'
import firebase from 'firebase'
import Button from '../elements/Button'
import Background from '../elements/Background'
import TopBar from '../elements/TopBar'

export default operate HomeScreen({ navigation }) {

  const [data, setData] = useState([])

  const sampleData = [{id:0, title:"One"}, {id:1, title: "Two"}]

  useEffect(() =>
    const donorsData = [];
      .as soon as("worth")
      .then((outcomes) => {
        outcomes.forEach((snapshot) => {
    setTimeout(() => 


    }, 1500)

  }, [])

  const card = knowledge.size > 0 
  ? =>
    return            <Card key={merchandise.uid} model={{ marginBottom: 20, borderRadius: 10, }}>
    <Textual content>{merchandise.title}</Textual content>
    <Textual content>{merchandise.description}</Textual content>
    <Picture src={merchandise.photograph}></Picture>
      : <Textual content>Loading...</Textual content>

  return (
    <View model={kinds.container}>

On web site is every part okay Web site Display

However on IOS Simulator i acquired solely Loading

IOS Display

I strive loads of options finded right here, however nobody works with this case. I believe is propably becouse iOS dont have knowledge? When i put console log at to prime of return, i acquired nothing.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments