Add React native video/voice call - react-native

Will onsip support React Native? How to a add voice/video call feature in React Native App?
I am trying with react-native-voximplant which requires
classpath 'com.android.tools.build:gradle:3.0.+'
and
distributions/gradle-2.14.1-all.zip
But it throws this error:
could not find com.android.tools.build:gradle:3.1.+
for any versions grater than 3.0.

If you are using latest Android Studio it will be enough to make a project modifications highlighted in the SDK tutorial.

Related

Expo + Stripe CardFormField crashes on Android build

I am implementing Stripe in my React Native (Expo) app. When testing it out with ExpoGO it works well, and so does the iOS build via Testflight. However, after building the app for Android it will crash whenever the CardFormField component (provided by Stripe) is rendered.
I have logged the errors in Sentry, and this is where it goes wrong:
Binary XML file line #5 in [censored]:layout/stripe_card_form_view: Error inflating class com.google.android.material.card.MaterialCardView
IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
I then found this, here:
In order to use CardForm component, you need to install and configure Material Components theme in your app.
I do however fail to find information on how I am expected to comply with this requirement using Expo. Do anyone have any ideas?
I am using:
expo 43.0.3
#stripe/stripe-react-native 0.2.2
App is built with eas
I use expo (not an ejected app)
Thanks in advance for any help.
With Expo you have a choice between managed vs. bare workflows. In order to access the build.gradle and styles.xml files to configure the Material Components theme you need to switch to a bare workflow. You need to use expo eject to create the native Android files in question.

Turn on the location using React Native

I would like to know if it is possible to turn on the location using React Native without the library. I just need to turn on the location. I searched but I just found about librarys.
Actually in older version of react native it offers Geolocation to enable and get location.
In newer version they separate it from react native package in order to decrease the size of react native package and shift to
#react-native-community/geolocation

In Expo v35 managed workflow, how to handle `Warning: Async Storage has been extracted from react-native core`?

I use expo SDK v35, and works on the managed workflow (one without eject).
In my project, I face warning whenever I use AsyncStorage as demonstrated by their doc.
This, however, results in following warning being emitted:
Warning: Async Storage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '#react-native-community/async-storage' instead of 'react-native'. See https://github.com/react-native-community/react-native-async-storage
I tried to follow the instruction given by this warning, and tried to use #react-native-community/async-storage, but it did not succeed; it appears the library requires some linking, which is not available if you want to work inside the Expo's managed workflow.
Question
What is the proper way to handle AsyncStorage warning when working on expo's managed workflow?
Env
Expo 35.0.0
Recently I began developing a simple app using react native and the expo cli. However, on the react native docs, it seems that asyncStorage is getting deprecated. The solution would normally be to use the react community version but that is not compatible with expo.
https://github.com/react-native-community/async-storage/
There is currently no scope of linking libraries while using the managed workflow of expo. I've faced similiar issues , and was bound to migrate from expo to pure react native. And expo isnt meant for production as apps are slower. Better i would suggest you to migrate to pure React native . Async storage cant be used otherwise and if deprecated , you will be in a great problem in the future for your app.

Error with React Native 0.53RC using Expo Client version 2.3.0

I got this error that says:
React Native version mismatch.
JavaScript version 0.50.3
Native Version 0.52.0
I have used Expo Client 2.3.0 on my Android mobile device. This attached screenshot shows the error:
Regards
React Native 0.53-rc is not a version that is supported by Expo and you always need to match the versions of React Native's JS and native code.
When you specify an Expo SDK version, that tells Expo which of its included versions of React Native to run. For example, Expo SDK 25 corresponds to React Native 0.52; a project that specifies "sdkVersion": "25.0.0" would make Expo load the native code for React Native 0.52.
Important: This also means you must use the JavaScript for React Native 0.52. The most reliable way to do this is to use the corresponding copy of React Native released by Expo, which often looks like:
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz"

React Native 100+ issues in xcode for a new project

Why when I init a new react native project:
react-native init awesomeProject
and run it from XCode I get more the 100+ warnings:
Pretty normal, there might be some incompatibilities due to old React Native core code such as deprecated swift methods or maybe old Objective-C code remaining in the core, but are not a problem for you to develop normally. If you don't use third party libraries you might want to try expo!
Expo is an SDK prepared to work along with react native api. It offers you a full javascript built component to use with your React Native code and you can forget about managing the iOS and Android projects as they will do it for you.
If you want to give it a try:
http://www.expo.io