React Native: Expo what is different standalone android app - react-native

I am using expo to create a react native application. There are settings app.json which i am not sure what it mean.
Standalone Android Apps , Standalone iOS Apps settings.
Are those settings required before build the app and upload to playstore/appStore?

Related

fullStory react native exclude from metro server

I see on the fullstory website
The FullStory React Native Plugin does not currently work with the Metro Server or with Non-Ejected Expo apps.
Ejected Expo apps are fully supported. If you want to use the Metro Server for local development, we recommend disabling FullStory for these builds.
Right now my app build on android fails on how do i disable fullStory in local development?

React Native Signature Canvas crashes in production

I integrated the react-native-signature-canvas in my expo app.
It works fine in development and also works if I build the apk through expo.
But it crashes of I make android app bundle(aab) using eas.
Ensure you have installed React Native WebView as it's mentioned in documentation
This package depends on react-native-webview and it is particularly
needed when you are using React Native CLI. To install
react-native-webview

How to use Android studio Code in react Native?

Is it possible to built a module in android studio that uses the camera of the celphone and then compiled it in some war to use it in react native?
Is there some can of bridge that can allow me to use android studio code in react native?
Yes, you can write native code and run it on JS side with NativeModules.
Native Modules Intro - React Native
Android Native Modules - React Native
You can also run or do what you want to do to your react native app from Android Studio just like any other android app.
Check out Ionic, it's the other way around, but very helpful.
https://ionicframework.com/native
Using "Capacitor" you build the web app, and it generates an android project and loads it in android studio for further editing.

React native difference in react native project directry structure

While creating an app in react native, I didn't get sub directories like android,or IOS. I Used create-react-native-app command.
New version of CRNA integrates Expo Toolkit, and android and ios folders are hidden. If you want to separate these folders, you must detach expo from react native app.
npm run reject
You can read more detail at CRNA's github

React Native using Expo SDK is really native ?! or like cordova

I am new to React Native and I know that there are two ways to develop native applications using react native
1- react native init --> need to compile the native cod
==> Result is Native Application for Android "Android SDK required" and Native Application for IOS "Xcode required"
2- create react native app --> no need to compile the native code !!
as CRNA uses Expo_SDK to access native API, but :
Is the result app is really native! or Expo Sdk is like Cordova but used by React and if result native, Expo claims that the result is native!, have they cloned both Android Sdk and Xcode for IOS or how does it work ?!
Expo apps are React Native apps which contain the Expo SDK. The SDK is a native-and-JS library which provides access to the device’s system functionality (things like the camera, contacts, local storage, and other hardware). That means you don’t need to use Xcode or Android Studio, or write any native code, and it also makes your pure-JS project very portable because it can run in any native environment containing the Expo SDK.
Expo also provides UI components to handle a variety of use-cases that almost all apps will cover but are not baked into React Native core, e.g. icons, blur views, and more.
Finally, the Expo SDK provides access to services which typically are a pain to manage but are required by almost every app. Most popular among these: Expo can manage your Assets for you, it can take care of Push Notifications for you, and it can build native binaries which are ready to deploy to the app store.
You should take a look at the Expo doc
Expo app is as native as React native. They do the following things so you don't need to setup Android / iOS SDK locally.
provide Expo App on Android/iOS
so you can build the js code and use Expo App to debug during the development.
provide build server
once you run expo build command, expo will upload the compiled js code and build Android/iOS file on their server. You can download the built file from their server.
You can eject from the Expo, setup Android / iOS SDK locally, and build the app as normal React Native app
Expo (and react-native) apps use native (android and ios) ui components to render the apps ui, like any native android or ios app would. Therefore they can be considered as native apps.
However your app logic is executed within a javascript thread an will communicate with the native threads (through the react-native bridge) to modify the native ui components. Since the bridge is completely asynchronous this should not affect the native ui performance of your application. If you want to understand the communication between js and native code it may be a good start to read this guide.
2- create react native app --> no need to compile the native code !!
With expo there is no need to compile native code, as expo already includes a "ready to use build" of react-native along with several other common react-native libraries. In an expo app this will be used together with your javascript bundle which than communicates through the react-native bridge with the already present native part.
They are basically just abusing the fact that you can inject different javascript bundles into a prebuilt react-native app. (as long as you are using only accessing a subset of the native functionality of that prebuilt app)
Note that Appcenters codepush uses the same functionality and their setup integration actually delivers a nice example how different javascript bundles can be loaded without touching the native part:
in ios AppDelegate.m this line is changed:
original react-native js-bundle loading which always resolves a static bundle
return [[NSBundle mainBundle] URLForResource:#"main" withExtension:#"jsbundle"];
js-bundle loading with codepush which can resolve to different js-bunldes
return [CodePush bundleURL];
Link to full codepush ios integration guide