React Native caching vs application state - react-native

I have to choose the best multilingual react native app. One performs with application state and the other gets results with caching which I'm not sure is possible.
Which one gives the best performance to save language data. Should I save it in state or in a cache?

There are multiple ways you can create multilingual app, in react-native, there is an async-storage which is supported by the react-native community. Through async-storage, you can detect and switch the language of the app.
In order to use state, for that, you would need a persistent redux store to check the state of the app and switch your app language.
I would recommend you to go through to the below article
Multilingual app in react-native and redux
Multilingual app react-native with async-storage

Related

Is it possible to put nuxt.js (pwa or spa) in the appstore?

The truth is, since nuxt works poorly in some native access, such as accessing the file manager or sending notifications to iPhone users, I am not sure if appstore supports nuxt projects or not. That's why before I start the new project, I had a question whether it is possible to put a nuxt project in appstore or not? (If the answer is yes, please guide how to do it)
Or using something like react or react native is a better option ?
Any answer from you would be greatly appreciated
As per Apple’s App Store policy-
“Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it does not belong on the App Store.” 
So no, you can’t throw a PWA in the App Store.
Google is far more accommodating in this respect, and welcomes PWAs in the Google Play Store. They also have their own publishing guidelines, so you’d want to read up on them.
React Native is an option for both the App Store and Play Store, so I’d recommend that if you’re comfortable with it.
First off, Nuxt is a meta-framework of Vue.
Meaning that it is a superset of Vue, bringing SSR/SSG capabilities + DX features.
It's clearly not a "mobile app-frienly starter" because it's still aimed towards Web.
You could use some modules to bring mobile capabilities like this one: https://ionic.roe.dev/
Here is a video on how to use Ionic + Vue + Vite overall: https://youtu.be/-FwQ6c6OreQ
As for the PWA approach, you can use a TWA app for sure but it's quite a stretch as you can guess.
You've already asked a similar question here btw, not a lot changed since then.
Overall, if you have bigger mobile needs you can always look into webview tools (Ionic, Cordova etc), React Native, Flutter or directly into Kotlin/Swift. All of them having their own pro/cons.

Possible for Expo/React Native to save large amounts of encrypted data to iCloud?

I'm developing an Expo app which stores large amounts of users private data, currently only within the app. In order to allow the user to migrate their app data between devices, we need to store this in iCloud.
I'm currently unable to find documentation or article that explains how to do this.
Is it not currently possible for Expo to save data via the iCloud API?
there are some ways to save the data in the iCloud, one way you write ios native module
for iCloud API, then use it in the js. the detailed guide you can see here.
the other way is to search the third library which is used for react-native.for example:react-native-icloudstore. but it is old.
besides them, you can use CloudKit JS. use it in the native app webView.
you can go to the official site to learn it
In the end, if you can write native ios code, I suggest you use the first way. if you can not write it, you can search ios native relate library, then make your own
native module for ios

native script equivalent to window.localStorage with vuejs app

Starting out on a new app of reasonable size, VueJS/typescript is the frontend choice. Currently persisting the data into localstorage with https://www.npmjs.com/package/vuex-persist
Before venturing much further into the build, i know this app will also need to be a mobile app, native script + vuejs looks like a nice combo.. but my question.
What is the best way to replicate localStorage in a mobile app with native script?
About 5 years i built my last mobile app for ios, I used titanium with SQLite. SQLite was ok, not blazing fast but it was good enough for what i needed. Is SQLite still the way to go for mobile apps?
There is nativescript-localstorage plugin which mimics localStorage on Browser by saving the key pairs to a JSON file.
There is also nativescript-sqlite if you prefer to go with SQLite.

How to add type-tolerance configuration setting in Algolia react-instantsearch for react-native application?

I am new to react-native. How to implement Algolia instant search in react native project?
As with any project that wants to use Algolia for search, you first need to push your data to your index. This can be done in any programming language (JavaScript, Ruby, etc) by using the official Algolia API Clients. This step is either a one-time thing (if your data does not change), or something that should be kept in sync with your database (if your data is updated often).
The second part is to build the front-end to search into this data. As you're using React Native, you should use React InstantSearch (https://community.algolia.com/react-instantsearch/) for that. It provides all the UI widgets you'll need to build the search interface.

How to use redux persist to support offline?

I have a react native mobile application and I need some pages to work offline (without internet connection) I am using redux persist library.
My question is where to initialize the store and persist it?
Should I make it for each page or one time?
You use it to persist either your entire redux store, or a part of the store. If your not using redux yet then you will need to implement that first.
It’s setup at the same time you create your redux store.
There are links to several examples and a guide start guide in the GitHub project readme.