Closed mikecole20 closed 7 years ago
Thanks for your contribution @mikecole20 👍 Could you update the Docs with your improvements?
Looks fine to me.
For Android, you can also take advantage of "flavors" to provide alternative airshipconfig.properties or config xml resources.
Hi guys!
Is the docs is all that's pending for this to be merged? @mikecole20 Do you mind if append this PR with the required docs?
-Sam
@sbycrosz I've been meaning to loop back and finish the docs. Feel free to add them in if you have time. You could send me a PR into my branch if that's easier and I'll merge it in.
@sbycrosz yes! Only the docs is pending this PR.
@evandroeisinger docs are updated. Big thanks to @sbycrosz for taking that on!
Nice job guys: @mikecole20 and @sbycrosz
Release 0.1.2: https://www.npmjs.com/package/react-native-ua
Thanks @evandroeisinger, that was fast!
Purpose
I often end up preferring programmatic setup of Urban Airship (I find it easier when dealing with multiple build environments). This simply adds a method to allow the developer to pass a
UAConfig
object if they want from theAppDelegate
in the iOS app.Since Android is setup with
Autopilot
, this can already be achieved by subclassingReactNativeUAAutoPilot
and plugging the subclass inAndroidManifest
like so: