0.0.1 • Published 4 years ago

@jetprivilege/gcc-mobile-theme v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

GCCTheme package

iOS

  • Edit Info.plist and add a property called Fonts provided by application (or UIAppFonts if Xcode won't autocomplete/not using Xcode) and type in the files you just added. It will look something like this:
<key>UIAppFonts</key>
<array>
  <string>Montserrat-Regular.ttf</string>
  <string>Montserrat-Bold.ttf</string>
  <string>Montserrat-Light.ttf</string>
  <string>Montserrat-Thin.ttf</string>
</array>

With CocoaPods

Add the following to your Podfile and run pod update:

pod 'GCCTheme', :path => '../node_modules/@gcc-mobile/theme'

Edit Info.plist as described above.

If you are using use_frameworks! in your Podfile.

Android

Option: With Gradle (recommended)

This method has the advantage of fonts being copied from this module at build time so that the fonts and JS are always in sync, making upgrades painless.

Edit android/app/build.gradle ( NOT android/build.gradle ) and add the following:

apply from: "../../node_modules/@gcc-mobile/theme/fonts.gradle"