Giter Site home page Giter Site logo

Comments (7)

migueloller avatar migueloller commented on September 24, 2024 14

@himanshu-satija, the two variables you use should be setup in your .env file in the following way:

FACEBOOK_CUSTOM_URL_SCHEME=fb{your-app-id}
FACEBOOK_APP_ID={your-app-id}
FACEBOOK_DISPLAY_NAME={your-app-name}

Then, in the Info.plist you have the following:

<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>__RN_CONFIG_FACEBOOK_CUSTOM_URL_SCHEME</string>
    </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>__RN_CONFIG_FACEBOOK_APP_ID</string>
<key>FacebookDisplayName</key>
<string>__RN_CONFIG_FACEBOOK_DISPLAY_NAME</string>
<key>LSApplicationQueriesSchemes</key>
<array>
  <string>fbapi</string>
  <string>fb-messenger-api</string>
  <string>fbauth2</string>
  <string>fbshareextension</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
  <string>{human-readable reason for photo access}</string>

from react-native-config.

migueloller avatar migueloller commented on September 24, 2024 1

@pontusab,

I had to use the workaround I mentioned and have two variables.

from react-native-config.

himanshu-satija avatar himanshu-satija commented on September 24, 2024 1

@migueloller Thanks for your quick reply!

I just realized I hadn't linked the package 😅

So I removed my comment as soon as it hit me. Didn't check you had already replied.

from react-native-config.

pontusab avatar pontusab commented on September 24, 2024

@migueloller Did you get it to work?

from react-native-config.

pedro avatar pedro commented on September 24, 2024

Nice, this seems resolved by now?
Lemme know if there's anything still pending.
Thanks folks!

from react-native-config.

hs-sundeep avatar hs-sundeep commented on September 24, 2024

@migueloller Were you able to achieve this without an extra variable?

from react-native-config.

migueloller avatar migueloller commented on September 24, 2024

@hs-sundeep, unfortunately I wasn't able to do it using a single variable. I moved away from that RN project 2 years ago as well so I didn't have the time or motivation to pursue a more elegant solution.

from react-native-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.