I’m building a React Native app with Expo and integrating Firebase (real time database) which I know has some limitations (https://docs.expo.dev/guides/using-firebase/). I’m trying to get a snapshot of the data using await get(query(… and have successfully done so, but I can’t figure out exactly what I’m working with. When I console.log it I get this: I was trying to return
Tag: react-native
How can I instantly load all my firebase entries without re-rendering?
Circumstances: For my app project that uses a realtime database I’m trying to load in data from all machines that are associated with the user. The machines that the user should see are dependent on the related company (cid) and which machines belong to that company. Problem: I have used the Firebase v9 docs as much as possible and have
Too many rerednders error by trying to show a FlatList
I am trying to display a flatList of numbers like this : (image of what the flat list would look like) To do that I did an array of objects with a numberName and a key, it’s generating with a loop: I dont think the problem is in the loop, but react is recalling the loop without showing the component.
Why these links are different and works same?
What is the different between above two links. And how can i convert Ist link to 2nd link using javascript or regex. Please help and give a expert advice. Answer URL encoding converts characters into a format that can be transmitted over the Internet. URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain
how to use state value in makeStyles in materail ui react
I am creating a Webpage. I am using Material UI for Components. Here’s the Code: I have a state named displayStyle . I want to use this state value in makeStyles. But it shows displayStyle is undefined because it is inside the Function. How to make it use in makeStyles. I want to set Styles based on the state value.
React Native FlatList not showing
Whenever I try to show a list of kids, it throws a fit and doesn’t do anything. Is there something wrong with my json or is it the way I rendered the list? my file: Answer try
How to navigate from one screen to another in React native?
When I click on Sign Up button I want to navigate to Sign up page but it did not work. I have imported the screens and navigated screen also to app.js file. I am getting an ReferenceError : Can’t find variable: navigation. Also I am unable to insert background image? Below is the Sign Up page. Answer onPress handler does
Getting undefined is not an object when using react-native’s FlatList
Recently began to study React Native. Now I try to display an array of objects on the page. I did everything as if right, but I get an error: I have two questions, what am I doing wrong and why in React Native, elements are displayed using FlatList and not via the map method? Here is my code snippet: Answer
Cannot read properties of undefined (reading ‘value’)
this is very basic but I’m new to JS and new to React, I need a few pointers on what I’m doing wrong. I have a Slider components I would like to change, and I would like to reflect/store the new value of the Slider in the class state. How should I be writing this? I get this error: Code
Expo SDK 43, No suitable URL request handler found for ph-upload://
After upgrade Expo SDK version from 41.0.0 to 43.0.0 I got a problem with uploading images to server. Error description: No suitable URL request handler found for ph-upload://A354049E-57C1-4478-B5C0-1DF56886F1AD. What I have noticed is that in error description I see ph-upload:// but if I log my photo it contains this: “uri”:”ph://A354049E-57C1-4478-B5C0-1DF56886F1AD”,”name”:”IMG_3702.JPG”,”type”:”photo”. The difference is ph-upload:// and ph://. This is my code: