Skip to content

magic-script/lomino-font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lomino-font module

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.

Install steps

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 or npm install --save git+https://github.com/magic-script/lomino-font
  • execute yarn or npm 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).

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •