@erisvaldo.junior/expo-plugin-link-native-assets
v1.0.1
Published
An Expo Config Plugin that links native assets to the native projects
Downloads
10
Maintainers
Readme
@erisvaldo.junior/expo-plugin-link-native-assets
Plugin to link assets to a native project so they can be loaded synchronously.
It supports not only images and fonts but raw files too.
On Android, fonts are added to /res/font folder. Raw files are added to /res/raw.
On iOS, all files are linked as Resources.
Add the package to your npm dependencies
yarn add @erisvaldo.junior/expo-plugin-link-native-assets
Usage
{
"plugins": [
[
"@erisvaldojunior/expo-plugin-link-native-assets",
[
"./assets/icon.png",
"./assets/font.ttf",
"./assets/sound.wav",
],
],
],
}
Then run expo prebuild to link assets.