apptentive / apptentive-cordova

A plugin for Cordova that lets your app be Apptentive.
https://learn.apptentive.com/knowledge-base/integrating-the-apptentive-cordova-sdk-plugin/
BSD 3-Clause "New" or "Revised" License
3 stars 13 forks source link

Look and feel customization? #28

Closed cgs closed 5 years ago

cgs commented 7 years ago

Is it possible to customize the UI? Looks like for Android cordova-custom-config would do the trick. For iOS I'm guessing I'd need to fork the plugin?

cgs commented 7 years ago

For customizing Android:

create platforms/android/res/values/apptentive.xml

<?xml version='1.0' encoding='utf-8'?>
<resources>
  <style name="ApptentiveThemeOverride">
    <item name="colorPrimary">#E6E6E6</item>
    <item name="colorPrimaryDark">#FFFFFF</item>
  </style>
</resources>
frankus commented 5 years ago

Sorry for missing this. We do have a solution in place now for iOS using a style plist, which you can find here: https://learn.apptentive.com/knowledge-base/interface-customization-ios/#initializing-from-a-property-list

The React Native plugin will automatically look for this and use it to style the UI.