For the function fetchApiAndSetStateForWrongGuesses() I pass it two parameters called randNum and wrongGuess. randNum is just a number but wrongGuess is supposed to be a state. The problem is that when I pass wrongGuess to the function fetchApiAndSetStateForWrongGuesses() the setState doesn’t works. By the time it hits the console.log it just prints out an empty string because thats what the
Tag: react-native
hi i’m using react-native and react-navigation
when i try to navigation.navigate this error occure Cannot read property ‘navigate’ of undefined this is my code when i try to navigation.navigate this error occure Cannot read property ‘navigate’ of undefined this is my code card.js navigator.js i don’t know how can i resolve…. please help me this is error view Answer This Worked for me!
I need to create a delay for text2 in my react component
As the title suggests. You can see in my code, I have text and text2 that forms the text for the typing effect. But they both start at the same time. I would like to create a delay on text2 so that it starts when text finishes. Any help would be greatly appreciated and thank you in advance. Answer Here
parse my json to get values – json sent from Xcode to JS front-end
Trying to parse and read my JSON data. I am passing my json data from Xcode to my React native front-end. I have tried JSON.parse and JSON.stringify nothing works. It always logs “NULL”. I need to access the “value” Help please!! JSON in Xcode JS: result: Answer Your result is coming back as an Array of strings. If you want
Change color of dropdown item in React with color picker
I have a react color picker that I am using to create a custom 16 color gradient. I use a dropdown to select the color I want to edit and then use the color picker to pick the color. This edits an array that is called to style each box of the dropdown. My end goal is to change the
Axios adds extra trailing slash in body values
I am developing an application with React Native, which communicates with an IoT chip (with very little ram memory), because of that all the logic must be developed on the client side. One of the specifications of this chip is all the characters “,” must to be escaped with just one trilling slash. Ex: From: To: I am sending this
TypeError: store.getState is not a function. (In ‘store.getState()’, ‘store.getState’ is undefined how can i resolve this problem?
i want to cnnect redux-saga witdh react-native but this error keep happen… TypeError: store.getState is not a function. (In ‘store.getState()’, ‘store.getState’ is undefined Warning: Failed prop type: Invalid prop store of type function supplied to Provider, expected object this is my code (App.js) (src/index.js) (store/cofigurestore.js) (reducer/index.js) (sage/index.js) please help me ……… i want to resolve this problem…… but i don’t
How to stop a sound when the stop button is clicked in snack expo?
I am making an app which has some buttons that play different sounds, and a stop button which stops all the sounds. However, it works only when the current sound playing stops, and does not play any other music. Is the function incorrect? Here is the code(the other buttons are written in the same way as the first button): Answer
Limit the selection dates between today’s date and 7 days back
How can I limit the selection dates between today’s date and 7 days back only. How can I achieve this limitation? Answer Well, as you wrote, you have two to properties named maximumDate and minimumDate. To get what you need you have to subtract, to the current date, seven days and put the current date as the maximum and the
How do I display all of the images from my Firebase Storage in React Native without needing image names?
Hello i am trying to figure out how to display all of the images in a folder i have in Firebase Storage called “VerifiedPhotos”. I don’t want to reference them by image name like I did below because I have multiple images. How do I grab all the list of image URLS and display them to my screen in React