-
Notifications
You must be signed in to change notification settings - Fork 516
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
Added Expo config plugin #842
Added Expo config plugin #842
Conversation
64a1ccc
to
fdf3fc6
Compare
Bump? |
I would really like to try out this way of adding a native package to expo, I cloned the repo, build tsc, and supplied the app.json with a path to the package. Almost thought I got it working, but when running |
Do you need help approving this? We all would love to start using this feature. Thanks. |
@sadilekivan follow the steps mentioned in the test plan, run If you open the app.json, add You should see similar results in your AndroidManifest.xml preview. |
Thanks for the advice, I'm having a problem packing the repo. When I want to get an http link from the green button at git I clone some other repo without the plugin folder (This one to be exact https://github.com/EvanBacon/react-native-ble-plx.git). I did try to just copy the link from an urlbar (https://github.com/EvanBacon/react-native-ble-plx/tree/%40evanbacon/config-plugin/create) which seems to be the correct one, but it doesnt pack nor install with npm, im guessing the @ and / symbols?
I manually downloaded the folder but still cant pack it. I installed yarn but Im still missing
I looked it up but found Any clue to what I'm missing? I can run the |
@piotrdubiel @dariuszseweryn @Cierpliwy is there anything the community can do to get some eyes on this PR? |
@sadilekivan download this file, change the filename to |
I ask you for a little bit more patience. I do not have capacity at the moment to test it out and this repository will most probably start to be maintained by someone else in the following days. 👍 |
😢😢😢 when? 😢😢😢 |
@EvanBacon could you write a blog post on how to fork this repo and build this plugin for expo? |
@dashcraft you can use this out-of-tree solution in the meantime |
@EvanBacon thanks for your great work! It works fine for me !!! |
Is this PR still needed to use this library with Expo development clients? |
@outinspace you can use the out-of-tree plugin in the meantime (mentioned just two comments before yours #842 (comment)). |
Hey! Looks like someone invited me to this issue. |
@givebk-bot !donate @EvanBacon $1 thanks for the out-of-tree solution! |
🎁 Hey @EvanBacon, you have just received U$ 1 from @nthypes!
@nthypes thanks for your support! ❤️
@EvanBacon, you can check your balance at https://givebk.io.
═══
(powered by https://givebk.io)
ID: 360c595b-560d-4097-a682-b75c3fb69422
|
Just wondering when/if this will ever be merged? |
The issue is that ble-manager doesn't support expo configs at all, so all the work would have to be done again. The idea that a react native package that can be ported, wouldn't have the configs necessary for the expo is problematic. |
@dashcraft I don't know what to say |
The library had a support gap but we are currently working on expo prebuild feature support. This PR has become outdated over time so we will make the necessary changes for the latest versions. |
Updated in #1105 and merged |
Why
With Expo SDK 41 we've rolled out an interface called config plugins which lets users add native modules that aren't in the Expo Go app to their native cloud builds and locally when prebuilding.
This is a highly requested package so I've created the plugin personally.
We’re still working on improving the development experience for config plugins and custom managed workflow, feel free to add any feedback. People won’t be able to use this in an Expo-Go-like-app until we release “Expo Development Client” (more info).
How
/plugin
folder and anapp.plugin.js
as the main entry point to the plugin. Plugins must run in at node LTS environments (currently that means 12 and greater), so a customtsconfig.json
is used for transpilation.tsc --build plugin
(yarn build:plugin
).Test Plan
I'm not certain how to test this package in the repo, so I did it externally.
npm pack
in the packageyarn add react-native-ble-plx@../react-native-ble-plx/react-native-ble-plx-2.0.2.tgz
react-native-ble-plx
to the plugins array and build the native app locally withexpo prebuild
andyarn ios
,yarn android
. We plan to further automate these steps withexpo install
andexpo run
commands.Modified some values and in the config plugin and updated with
expo prebuild
andyarn ios
,yarn android
.