walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
70 stars 26 forks source link

feat: add expo config plugin #76

Closed mlecoq closed 2 years ago

mlecoq commented 2 years ago

Why

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

Test it locally