A module that contains the Lumin system icons 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 icons.
Prerequisites: app should base on React-Native >= 0.60.0
- in main folder of your app create
assets/lumin_system_icons
folder (if it doesn't exist):mkdir -p assets/lumin_system_icons
- add
lumin-system-icons
to your project dependencies eihter by:yarn add git+https://github.com/magic-script/lumin-system-icons
ornpm install --save git+https://github.com/magic-script/lumin-system-icons
- execute
yarn
ornpm install
- create (or update if it exists)
react-native.config.js
with lines:
module.exports = {
assets: ['./assets/lumin_system_icons'],
};
- 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 lumin-system-icons files are copied into desired location and linked into the platform specific code.