Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo config plugin #312

Open
nicobermudez opened this issue Jul 26, 2022 · 2 comments
Open

Expo config plugin #312

nicobermudez opened this issue Jul 26, 2022 · 2 comments

Comments

@nicobermudez
Copy link

I'd like to be able to use this with Expo's Managed Workflow and EAS. Would it be possible to create a custom Expo plugin similar to React Native Health?

@vladpiciorea
Copy link

Hi, I can't get it to work with expo either.

@frankcalise
Copy link

Hey! No Expo plugin is needed to get this library to work. You do still have to create a custom dev client, though.

Try out these steps:

  1. expo install expo-dev-client react-native-google-fit
  2. eas build --profile development --platform android - allow it to create an Expo project on your account, this is what you'll need to obtain the SHA1 from the credentials page
  3. After the build finishes, obtain the SHA1 for your Google OAuth Client ID by visiting https://expo.dev/accounts/[account]/projects/[project]/credentials
    • Press the application identifier
    • Grab value from SHA-1 Certificate Fingerprint
    • Paste in Google Console
  4. yarn expo start --dev-client to start metro
  5. Install the dev client on your device
  6. Edit your app to call on the GoogleFit APIs and watch auth success and subsequent calls work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants