Do i need redux to integrate laravel api with react native cli - react-native

Im am trying to integrate laravel login api with react native cli front end .Do i have to use redux ? And how to integrate it.

its not necessary to use redux for integration of api you can use fetch or axios to request the server and then you can store data into AsyncStorage or ContextApi.if you want to go with redux then you have to install couple of libs
"react-redux"
"redux"
"redux-logger"
"redux-persist"
"redux-thunk"
you can visit this link for proper guide how to integrate redux

Related

is it possible to have a separate backend for next js application?

I am working on an app right now I just want to know is it possible to create a separate backend for the next js application because I want to connect react native app and web application with the same backend. Is it possible? and can I use getinitialprops and server-side props while having separate backend???
Yes, you can.
API Routes of Next Js can be use as backend, but it is optional.
getinitialprops, getServerSideProps, getStaticProps, are fetching methods of Next Js to handle the data and APIs in a headless way, so you can use any backend that expose an API.
Here are few ides for the arquitecture:
Next JS for webapp and Backend, React Native fetching Next Js API Routes
Next JS and react native in one project https://docs.expo.dev/guides/using-nextjs/ and any backend that you want to use
The last is project for each (Next, React Native, Backend)
Backend is all about having the data. Nextjs has many fetching methods for both server side rendering and static generation. To fetch the data from backend, you can go with getStaticProps, getServerSideProps or getInitialProps. You can also fetch data locally by providing a simple json file within the application.

How to integrate paytm in react native app

I need to integrate paytm in my react native app.
Api written in laravel.
I don't know how to write api to generate transaction token.
Please somebody help
Check out the official docs from the Paytm developer site to integrate the Paytm gateway into the react-native app.
https://developer.paytm.com/docs/all-in-one-sdk/hybrid-apps/react-native/

Using stripe connect with react native

I'm currently looking to use the Stripe connect feature in my react native application and was wondering if there were any libraries I could use to use stripe connect. I've looked at react native stripe libraries like tipsi react native but it didn't seem like they support stripe connect. Is there a reference for api I could use to incorporate stripe connect in my application?
The best course of action when using Stripe in react native is to just use the native Stripe libraries.
This is due to the security vulnerabilities that exist when not using a Stripe approved library, and due to the lack of support for things like Stripe Connect and other services.
--UPDATE--
While I stand by the above for not using unapproved 3rd party libraries, I will say that Stripe does have an API that can also be used securely. In react native, that would be the way I would go about using stripe if I was not in need of the full Stripe libaries.

How we can connect React Native App to octobercms backend?

We are developing new app, and we choose octobercms like backend.
How to connect React Native with octobercms and login with JWT.
Tks,
you can not :(
but you can create a backend API system to sarve and manage your data for your React APP,
mabye this video series can help you to know about how to you can, on
this viedo use Octobercms as backend api system and use vue.js as Frontend
Framework same like octobercms and react etc....
https://watch-learn.com/series/creating-rent-car-app-vue-and-october
i hope help you

Migrating a native app to a RN/Expo app: keep user authenticated

I want to migrate an existing Android+iOS native app to a react-native Expo app.
In current native app, we store an auth token. I'd like this auth token to be available through ReactNative AsyncStorage api out of the box, without requiring RN native code (ie, ejecting Expo).
Is this possible, in current native app, to start writing to the same place as AsyncStorage will read after the migration?
We aim for the smoothest transition from native app to RN app, and user should stay authenticated after the upgrade.
Depends on what you're current app is using for storage. I recently used this library (https://github.com/kevinresol/react-native-default-preference) to get the data from user defaults then move it into async storage. I only migrate the refresh token and auth token.
If they are using core data, then you'll need to setup the same models etc - https://github.com/realm/realm-js/issues/584
The other storage mechanisms you can easily find a native package to get the data.
if the app is under same app name scheme you may be able to access after upgrade i guess.