I made the second argument function of the schedule run one day later through the new Date. However, I want to change it in a minute, not in a day. How do I fix the code? this is my code Answer
Tag: react-native
Trouble on adding items to Flatlist, React Native
DIET (screen) FOODCREATE (screen) Hello everyone, I’m trying to make an app in which the user has to insert foodName and calories in the FoodCreate screen and once he taps the checkmark it will add the foodName and calories to the Flatlist in the Diet screen (when I launch Expo the first screen to appea…
How Can I Make a Loop of two arrays with some rules
I need some help I have two arrays: First array have Boolean elements. (It’s true when button is active , and false if not) The second one strings where “0”(active) or “1” (inactive). To understand better , PaintBall have grupo(group), indoor, outdoor and natureza(nature) activat…
Cannot render components by mapping object ReactJS
I am developing a webapp using ethereum blochchain and ReactJS. In a page, inside componentDidMount() I collect data from blockchain and add it to an array named requests I tried to render components based on the elements of the requests using following code : But this error occurs How to fix this? RequestRow…
SyntaxError: Cannot use import statement outside a module, how to run test unit with react-native-svg for the Web?
I have the following error when I run yarn test: My jest.config.js: I expect when babel to transpile what’s in node_modules/react-native-svg-web. Instead, babel does not transpile and I have the casual transpilation error for dependencies that are not transformed: SyntaxError: Cannot use import statemen…
Props in component are undefined
i have parent component and child component In the console i get the output: {“answerChange”: [Function bound ], “inputChange”: [Function bound ], “props”: {“answer”: “”, “input”: “”}} undefined undefined The functions that I …
My React Native App Had started in dark mode by default
When I created a new fresh React Native App, it started with dark mode. Previously my react native app would start with light/white background. I don’t know how to disable the mode. Please help me to disable the dark mode. Answer The latest React Native CLI app template uses the Theme.AppCompat.DayNight…
How to prevent TypeError: e.target.getAttribute is not a function? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question What I…
Is there a way to enable selection when TextInput is set to editable=false
I’m wondering if any of you know of a way to make TextInput selectable while the editable={false}. Thanks. Answer This is the current behavior of React Native you can fake TextInput in your case with Text and use selectable props https://reactnative.dev/docs/text#selectable or something like this
JavaScript instantiates class without usage React Native
I have the next problem/question in React Native: I have the next class, let’s say it A that looks like this: My A class in used in B class like this: And the makeApiRequest function from B class in used in App.js like this: And this makeRequest function is placed as an onPress action. My question is: A…