appcues / appcues-android-sdk

The Appcues Android SDK
https://www.appcues.com/mobile
MIT License
10 stars 3 forks source link

Add support for custom font asset path in config #505

Closed iujames closed 1 year ago

iujames commented 1 year ago

This is to support custom font loading in React Native Expo projects, on Android. The new config option for fontAssetPath will allow specifying something other than the default (/assets/fonts), since Expo apps put custom fonts in the /assets root.

The majority of the changes here are propagating a new CompositionLocal for AppcuesConfig down through the spots that eventually need it for text styling.

shortcut-integration[bot] commented 1 year ago

This pull request has been linked to Shortcut Story #57692: Support a custom font path.