I'm using this library in a expo app that I need to eject (with expo prebuild) to maintain crisp configuration
I thought I could be interesting to have a config plugin since manual modifications are error prone.
The implementation is based on regex so It's a bit hard to foresee all potential side effects but I will have a look on the repo if some issues occur using multiple config plugins
The implementation is inspired by implementation made by @EvanBacon on react-native-mapbox
How
Added a /plugin folder and an app.plugin.js as the main entry point to the plugin.
The plugin is like a different package that's vendored for versioning purposes. Building is done with tsc --build plugin (yarn build:plugin).
Test it locally
Run npm pack in the package
Install the package in a managed Expo project yarn add file:/path/to/react-native-crisp-chat-sdk.tgz
Then update app.json file of the Expo project like described in plugin/install.md and build the native app locally with expo prebuild and yarn ios, yarn android.
Why
I'm using this library in a expo app that I need to eject (with
expo prebuild
) to maintain crisp configurationI thought I could be interesting to have a config plugin since manual modifications are error prone.
The implementation is based on regex so It's a bit hard to foresee all potential side effects but I will have a look on the repo if some issues occur using multiple config plugins
The implementation is inspired by implementation made by @EvanBacon on react-native-mapbox
How
Test it locally
app.json
file of the Expo project like described inplugin/install.md
and build the native app locally with expo prebuild and yarn ios, yarn android.