-
Notifications
You must be signed in to change notification settings - Fork 7
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 Plugin #563
base: main
Are you sure you want to change the base?
Expo Plugin #563
Conversation
packages/react-native/yarn.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eeeek, will doublecheck if .lock
needs to change so much. My guess it's the addition of expo.
This is really cool @larcho! I have to figure out how to test this. |
Maybe I can set something up like the already existing example for bare react native. |
@dangeross I added a I'm not able to currently build it though, since there's something weird going on with the LiquidMapper file on my end. (I'm using |
It's able to resolve |
@dangeross I spotted the issue, maybe you can hint me how you deal with versions in the SDK. If you currently look at the I think |
@larcho Yes it was added from 0.5.0-rc1 I think this is just a local testing issue. You can bump the react-native/package.json version up to 0.5.0-rc4 |
Adjusting the the package version solved the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting this error running yarn ios
, I ran yarn
in react-nativeand
react-naive/example-expo` first:
Error: Cannot find module './plugin/build'
Am I missing a step?
} | ||
|
||
// Get API Key | ||
const apiKey = process.env.EXPO_PUBLIC_API_KEY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename this to BREEZ_API_KEY
. I wasn't sure if I needed an Expo API key at first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, looks confusing. By the way, anything that starts with EXPO_PUBLIC
in Expo will be also exposed during runtime. I'll rename it to EXPO_PUBLIC_BREEZ_API_KEY.
yup |
This extension in the React Native Module would add the Expo Plugin for automating adding the Notification Service to the app. This would safe all the "native" effort required for setting it up. Also, this does not interfere with non Expo projects, since the plugin gets added in Expo specific configurations
(app.plugin.js)
.Personally I don't like doing huge PRs and would do the Android bit in a separate PR. This should be safe to merge and shouldn't affect current Vanilla React Native implementation.