Me_Will
Me_Will

Reputation: 121

Import com.facebook.react

I want to call native functions from Android to my React native app. I follow the facebook tutorial and they say to add a javafile including for example :

import com.facebook.react.bridge.ReactApplicationContext

I have never used Android Studio before, so my question can be very simple but what library is it and how to import it ? I found this tutorial about facebook SDK - but they talk about com.facebook.android which doesn't seem to be the same. What is more there are many component core, share, login, messenger.

My question is what SDK do I have to install to have access to com.facebook.react.bridge ? (when I google it, i have many react native package not what I want)

Upvotes: 1

Views: 2181

Answers (1)

Funda Ese
Funda Ese

Reputation: 91

  1. Firstly go File->Project Structure->Dependencies->app
  2. There is (+) bottom of Declared Dependencies,click it.
  3. Select Library Dependencies, and then write com.facebook.react,search and add lib in your project

Upvotes: 2

Related Questions