Questions tagged [react-native]

React Native is an SDK for mobile applications that lets you build mobile apps using only JavaScript. It uses the same design as React (for Web), letting you compose a rich mobile UI from declarative components.

14 questions
5
votes
1 answer

React Native vs. "Real" native

I am working for the consumer oriented company which has mobile app as main product. Our mobile app has 100K monthly active users and is developed using Cordova + Kendo Mobile + Telerik Appbuilder (which will be discontinued in couple of days). We…
hyperN
  • 159
  • 4
2
votes
1 answer

Render constant props components from an object or by hand?

Lets say I have a component that render some "static" information and another one that is the parent of these components. function Foo(){ ... return (
Vencovsky
  • 351
  • 3
  • 8
1
vote
1 answer

Is it helpful to create UML diagrams when developing a mobile app alone?

I'm thinking of developing my first mobile app and now that I have chosen the language(react native), created the wireframes and done almost all the preliminary work, I'm about to start the actual coding part. I'm wondering if create something like…
Giacomo_V
  • 31
  • 2
0
votes
0 answers

Implementing a wizard using Atomic Design with React Hooks. Is it a bad practice to use a hook-only-child component to orchestrate the parent?

We're currently developing implementing a wizard in React Native application using Atomic Design (Pages, Templates, Organisms, Molecules, Atoms), and React Navigation. The wizard will have a progress bar that must be present on every screen. We are…
Jose A
  • 275
  • 3
  • 12
0
votes
0 answers

How to straightforwardly implement selective A/B testing in a React Native app?

I have a React Native app with several thousand users. I want to make small changes to the app, but in a way that will touch a lot of files. I want a specified list of users to see the new changes. At the top-level, I know how I could determine…
Dara Java
  • 1
  • 2
0
votes
0 answers

Effective cache solution to have the newest data in React Native

Goal We have an app with different articles. I want to cache an article when the user has read it, but make sure that I display the latest data. I came up with this hook: React.useEffect(() => { (async function fetchArticle() { const…
Gh05d
  • 101
  • 1
0
votes
0 answers

How do I migrate Core Data data to a React Native application?

I have an iOS application that uses the Core Data framework. I'm migrating the application from Objective-C/Swift to TypeScript + React Native. My Core Data configuration uses SQLite as a backend. The application has an existing user base who may be…
moonman239
  • 2,023
  • 4
  • 18
  • 23
0
votes
1 answer

Need help with React Shape building app architecture

I am trying to figure out how to build most scalable and maintainable architecture for my app. The app is just about choosing some shape and then editing it. More precisely, choosing some existing shape from the list(square, rectangle, circle, oval,…
Nick
  • 111
  • 3
0
votes
1 answer

OAuth2 not implicit flow, POST username and password

I am a mobile dev, now for a project need to authenticate with a backend service using identityserver4 and OAuth2. The project has things set up so it is using OIDC for authentication. BUT It is on a "password" flow, so is not implicit flow (login…
manuelBetancurt
  • 830
  • 2
  • 9
  • 16
0
votes
1 answer

Correctly store device info with Redux in React Native app

I'm currently building a React Native application and wondering if storing device information such: if my app has granted location permission location service is turned on last known user location in the Redux store can be a good idea. I have…
lellefood
  • 119
  • 5
0
votes
1 answer

Best Practice for handling data sync with React Native, MobX and REST?

We're developing an app using React Native and MobX for the state stores, and also using a Web API REST service for the GETs and POSTs. All is going well, so far we're able to use FETCH to get the data, persist it in the relevant store using MobX…
API
  • 13
  • 1
  • 3
0
votes
0 answers

Mobile development and infinite List pattern

I m currently working on a React Native application which aims to provide à huge list of items, using infinite scroll and a local state (no matter the technology / plaform, it's stored in RAM) of the app. I've currently implemented it the following…
mfrachet
  • 1,481
  • 3
  • 15
  • 21
-1
votes
1 answer

Where should I put/handle periodic data updates in React?

I'm following the guide in https://reactjs.org/docs/thinking-in-react.html which makes sense for data that I request and update on a filter. However, I want to have some sort of general synchronization job in the background that polls and updates an…
Archimedes Trajano
  • 685
  • 1
  • 6
  • 14
-3
votes
1 answer

Sharing React Native Component as a "black box"

I'm looking for a way to share a React Native component with 3rd parties without having to share the actual source code. Something like a .jar in Java or a .dll for C#. So assuming we have company A and company B, i (as company B) am looking for a…
Gr3at
  • 121
  • 3