#react-native-community/geolocation:NativeModule.RNCGeolocation is null - react-native

I'm trying to use Geolocation on my React Native app (Ios, expo). I have installed react-native-community/geolocation, and when I import it I get this erro:
#react-native-community/geolocation:NativeModule.RNCGeolocation is null.
It asks me to run "react-native link #react-native-community/geolocation" in the project root, but when I do it it says: Calling react-native link [packageName] is deprecated in favor of autolinking.
I do not know what to do anymore. Can anyone help me with this? Please

If you are using Expo, you can use the Location from Expo.
But if you want to use the #react-native-community/geolocation, since react-native 0.60 or higher the autolinking should configure the library for you automatically. But if use react-native 0.59 or lower, you must make a manual installation for iOS and Android when the react-native link doesn't work.

Related

How to install react native camera without ejecting

React camera requires us to do linking, which with react native says we must cd into the ios folder and run pod install but we dont have the ios folder without ejecting the app, so why won’t the previous method using ‘react-native link react-native-camera’ work? Is there a way to make it work?
if you are using expo , then i would suggest to use expo-camera as react-native-camera wont work coz it requires linking and expo projects doesnt provide linking.
expo-camera
And if you are using bare react native project , then yes you have to link react-native-camera if you are using RN versions <0.60 , and if higher , it will be automatically be linked.
hope it helps. feel free for doubts
please follow this step which available in below link and i m sure it's working:->
https://react-native-community.github.io/react-native-camera/docs/installation

React Native Video

i'm trying to use 'react-native-video' in my application, i have used the following lines to get it:
npm install --save react-native-video
react-native link react-native-video (since my react native version is 0.59)
after doing so and using "Video" component from 'react-native-vide' i got an error like below:
what is the problem? what can i do? any ideas?
You did not link the library properly.
After having installed the library through npm i --save react-native-video, you'll need to run react-native link react-native-video in order to link it. This may or may not work - if it does not, you'll need to link manually according to the installation instructions of the library.
You might be using CocoaPods in which case you'll need to run these commands as well: cd ios && pod install
If you receive an error, you're most likely not using CocoaPods and this is the wrong approach.
Please note that you'll need to reinstall the app on the phone / simulator afterwards since you've changed the native dependencies. You'll also need to do this if you're using (ejected) Expo or anything alike. If you're using Expo with the managed workflow (= not ejected) you're not able to use libraries that depend on native linking.

react native 0.60 add react-native-fbsdk module

I am using the latest version of react native 0.60
When I add the react-native-fbsdk module
The document does not seem to apply
Does anyone know how to add the react-native-fbsdk module in react native 0.60?
Platform: Android
There's not much to do, really. You simply need to skip the Link section of the instructions, as stated in the installation guide and then configure both projects with your Facebook App Id.

Can we user razorpay plugin with reactnative and expo

In plugin they mentioned that the razorpay is not going to work with expo. i want to acces razorpay plugin in my react native app. is there any way..? i am using expo. please help me
if the react native library you want requires a linking step, then you can detach and use ExpoKit directly.
https://docs.expo.io/versions/latest/guides/detach.html
EAS builds officially released in Expo SDK 42 makes it possible to run native modules on expo projects.
In order to make sure Razorpay wrapper works correctly:
Create a dev build of your expo app by following the instructions mentioned here.
run your project by running the following command
For ios
expo run:ios
For android
expo run:android

Requiring unknown module "object-assign"

Hi i am a newbie to react native, just now installed react and trying to open my first app but it shows error. Please guide me what to do next and why it happens.
Some packages you installed maybe not compatible with the React Native version you used. You can check the peerDependencies of all your dependencies and try to remove dependencies which have a react-native version less than 0.25 in peerDependencies.