A module that contains the Lomino font files that can optionally be used with a React Native project that utilizes the react-native-magic-script library. After installing this module, the magic-script components will automatically use the new font.
Prerequisites: app should base on React-Native >= 0.60.0
- in main folder of your app create
assets/fonts
folder (if it doesn't exist):mkdir -p assets/fonts
- add
lomino-font
to your project dependencies either by:yarn add git+https://github.com/magic-script/lomino-font
ornpm install --save git+https://github.com/magic-script/lomino-font
- execute
yarn
ornpm install
- create (or update if it exists)
react-native.config.js
with lines:
module.exports = {
assets: ['./assets/fonts'],
};
- execute
react-native link
$ react-native link
info Linking assets to ios project
warn Group 'Resources' does not exist in your Xcode project. We have created it automatically for you.
info Linking assets to android project
success Assets have been successfully linked to your project
All lomino font files are copied into desired location and linked into the platform specific code (additional steps like filling Info.plist is also done).