React Native - Using iOS and Android SDKs - react-native

I just started using React Native a few days ago and want to build my next iOS/Android app with it. However, I had a question (and I apologize in advance if this question is very basic).
If I am integrating my iOS and Android apps built with React Native, with an external service (like Salesforce for example), how do I go about using the native mobile SDKs they provide for iOS and Android? As in, what do I do to integrate those SDKs into my React Native app? Those SDKs are using native Objective-C and Java code, so how would I be able to use the JS code for React Native? I believe my understanding about this is skewed.
I looked at this link which goes into it, but it seemed very confusing and I had a bit of a hard time grasping the concept (again, I am very new to this - I've done a lot of web development, hence turning my attention to React Native, but I've done no mobile development whatsoever).
If someone could please explain how that works, and point me in the right direction where I can read and learn more, I would sincerely appreciate that!
Thank you!

Checkout out this talk on SalesForce mobile SDK for React native
Official SalesForce Docs - Read Here
Also this tutorial might help you. http://rajaraodv.github.io/salesforce-react-native-tutorial/
Update:
There are react native packages build by open react native community if you couldn't find anything to access native iOS or android functionality you will have to write react native wrapper yourself using react native "Native Modules"
Native Modules

Related

React Native vs Expo

I am doing a course of android development and being taught expo to develop it.
Now my question is as I am a beginner Do I have to learn react native for expo Or expo is a separate different language.
I am really confused as on coursera Android Development by Meta. In this course they are using react native.
What should I do
Should I learn expo first
Or I Learn React Native
Or I Do course from Coursera
for Android Development as a beginner without any coding knowledge
I have searched a lot on Google difference between react native vs expo. There are a lot of blogs answering advantage and disadvantages. Someone saying use react native someone expo
Really confused
React Native and Expo are both popular technologies used for building mobile applications, especially for Android and iOS platforms. Here's a brief comparison of the two:
React Native:
React Native is a JavaScript framework for building native mobile applications. It was developed by Facebook and allows developers to create apps that look and feel like native apps, but with the use of JavaScript and React. It uses native components, which makes it faster and more efficient than other cross-platform frameworks.
Expo:
Expo is a free and open-source platform for developing mobile applications. It is built on top of React Native and provides a set of tools and services to make it easier to develop, test, and deploy mobile apps. Expo provides a lot of pre-built components, which makes it easier for beginners to get started with mobile development. It also allows developers to preview their apps on a physical device without having to install a separate mobile app.
Which technology should a beginner use?
Both React Native and Expo are great choices for beginners who want to learn mobile development. However, if you're an absolute beginner with no prior experience in Android development or programming, Expo might be a better choice because it provides a lot of pre-built components and simplifies the development process. It also has a user-friendly interface and makes it easier to preview your app during the development process.
React Native, on the other hand, might be a better choice for those who have some programming experience or are already familiar with the React JavaScript library. React Native provides more flexibility and allows developers to use native components, which can lead to a more efficient and performant app.
Ultimately, the choice between React Native and Expo will depend on your specific needs and goals as a beginner in Android development.

Add unity into React native expo

I would like to add unity into my react native expo app. Since I searched I don't find anything helpful for me and related to my requirement. Is there any Sample/Reference code available for Unity Integration with React native?
Thanks in advance!
ive been in the same place. so currently theres no way to directly communicate it with Unity. But you can always communicate with native android/ios and that in turn communicates with unity. worked with that, and it works pretty well. so your native side should launch the game rather than react native directly starting it.
Basically call a native method in android side from react native --> that in turn starts / calls the unity module .
check this once
Hope this helps. otherwise please connect with me

Will this module work in expo or react native?

I am new to react native and expo.
This is the module i am looking at: https://github.com/leesiongchan/react-native-esc-pos
I want to build an app that can print using bluetooth thermal printer. I am not sure if i should build it using react native or expo. Please advise me.
Thank you.
Expo has its own limitations and there are even some bugs there too, Its good for quick development as the documentation suggests the same that it is good to get you started with development within minutes without much hustle. In my opinion, React Native CLI is most of the time the best option even if you are new to react native development. Because of the following reasons
You will learn a lot as you will get your hands dirty in core react native app development.
You won't have to deal with expo limitations
You won't have to be dependent on expo tools
Any Library which requires linking or contains native modules will not work with the expo.
The library you mentioned uses many native modules and usually these type of libraries are not supported and that is the reason why they've built their own APIs and Native Components you can read this,
the developer has not mentioned Expo support anywhere on the docs but still You can open an issue on GitHub and ask the developer if it supports EXPO platform or not, or maybe instead of asking you can try the library yourself and you will find out if its working or not,

Any documentation about pure React Native without using EXPO?

I want to learn React Native but, without using EXPO
Why do i not using EXPO? (source: Youtube Channel "McAbout Digital")
Lack of support for geolocation
No support for Payment API
Slow image rendering
Limited access to Firebase setting
Advanced animation support
Wherever i google about React Native the EXPO is always there too.
I'm looking for pure react native documentation/tutorial
Apart from project setup almost everything is same in the docs for both versions,
but if you are looking for a good tutorial series you can start learning by
UDEMY - React Native Practical Guid which is a paid course but worth it.

How to use JavaScriptCore in React Native android apps

We are building a React Native application on Android. We have a requirement of creating a separate JSC virtual machine instance in a thread. We do not want to use same JSC context which is used by React Native.
We have searched a lot on web and also tried to figure out how React Native is using JSC, but we are not able to find the same.
It will be very helpful if anyone can suggest us directions for the same.
Perhaps you should take a look at this:
ericwlange/AndroidJSCore
or dive deep into React Native's Android source code.
https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/jni/react/JSCExecutor.cpp