segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
367 stars 191 forks source link

How to pass parameters into Braze.initialize #560

Closed TrekSoft closed 2 years ago

TrekSoft commented 2 years ago

I'm trying to add a parameter to the Braze initialize call - specifically, braze.initialize('YOUR-API_KEY', {allowUserSuppliedJavascript: true})

How can I do this with the segment plugin?

alanjcharles commented 2 years ago

Hi @TrekSoft we don't have the option to do that currently but it's definitely something I can add over the next sprint. Thanks for the report!

TrekSoft commented 2 years ago

Thanks so much @alanjcharles - that'd be amazing!!

alanjcharles commented 2 years ago

Hi @TrekSoft I was just looking into this and it seems the Braze SDK does not offer an initialize method or an allowUserSuppliedJavaScript option in their React Native SDK. These seem to be functionality offered in the Braze web SDK. With that in mind, it won't be possible to add this feature, I'm afraid. I would recommend checking out the Braze React Native SDK documentation for more information. I will close this out for now, please feel free to reopen with more information. Thanks!

TrekSoft commented 2 years ago

Understood! Thanks so much