Questions tagged [react-native]
React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI from declarative components. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.
31 questions
2
votes
1
answer
120
views
Move timestamp to the next Monday 10:01 AM [closed]
I've been battling ChatGPT for hours now and can't get satisfied with this simple algorithm in TypeScript. These two (hopefully correct) TypeScript+ReactNative solutions should move the timestamp ...
0
votes
0
answers
54
views
Good way to coding on React-Native?
I'm new on this field of coding, and I start to create by myself a project for iOS and Android. I'm a bit lost of how I supposed to organize my code, I saw different persons on YouTube doing their ...
-1
votes
1
answer
103
views
Preferable ways for reusing input components in react native? [closed]
I am using react native 0.68.5
When I call the renderReusableTextInput method in Main.js I am sending all the styles including ...
1
vote
1
answer
452
views
React Native login, sign up and sign out using Firebase project
I have built a basic app which uses firebase for authentication.
The app is pretty simple.
Sign up the user to firebase using email and password.
Sign in the user
Sign out the user
Also, I have ...
1
vote
1
answer
71
views
Typescript React-Native Component Dimension Hook
I did a lot of research trying to find a React Native component which could reference its own dimensions in order to scale different elements in its style, but could not find any solid examples. I ...
2
votes
1
answer
109
views
Abstract navigationOptions react navigation
I have many stacks with the same navigation options. How do I abstract the navigationOptions part to have it repeat in all my stacks?
...
0
votes
2
answers
133
views
React Native screen to add a city to a weather app using a REST API
In a recruitment process, the company gives me a project to do in react native. I finished all the tasks. But company gave me a feedback and said that your project was good, but you did not apply best ...
2
votes
1
answer
180
views
React component to render price change
I've written this Card component which is composed of thumbnail image, name, symbol, ...
0
votes
1
answer
39
views
react native refactor theme handling
I am styling my react native component according to some conditions, here the code, The question is how do I make this cleaner? functional style?
...
0
votes
1
answer
35
views
JS react manage dark mode ternary
How to choose the dark mode properly?
...
2
votes
1
answer
146
views
Managing redux state of mutiple switch components
I have a react native native app and I am fetching the state of the toggle buttons from an API and then putting them into redux state. I do not like the way I have implemented it cause it seems very ...
6
votes
1
answer
12k
views
React hooks update array of object
I have declared a react hook which will contain an array of object as follows:
const [rowDataTracker, setRowDataTracker] = useState([]);
Now I need to update the ...
4
votes
1
answer
65
views
Clean up and Refactor react code to increase performance
I am new in coding in React and I have just joined a new organization where I need to send my code for review .The functionality is working fine but it seems to me that code in my component has become ...
2
votes
1
answer
64
views
Displaying information from shops
To display all the shops, I get data from a database (Firestore) and push them into array and setState, and use map to display shops from ...
2
votes
1
answer
292
views
How to change the text in the flatlist items with improved performance?
I am working on a react native android app that generates fancy text. Similar to this Fancy Text Generator
For every letter being typed fancy text will be generated.
I implemented everything and it ...