设置图标
npx icon-set-creator create ./assets/icon/app_icon.png
ios需要在xcode中把images资源重命名为assets
andorid 设置真机调试时的bundle ip
由于直连mac android没有像Ios那样自动创建一个虚拟的网络适配器,
所以andorid需要用adb 开启转发,反android 真机对自身访问8081转发到mac上的metor服务上
✦ ❯ adb reverse tcp:8081 tcp:8081
andorid 字体不生效
需要把family 名称作为文件名
✦ ❯ fc-scan assets/fonts/Digital-7\ Mono.ttf
Pattern has 26 elts (size 32)family: "Digital-7 Mono"(s) "Digital-7"(s)familylang: "en"(s)style: "Mono"(s)stylelang: "en"(s)fullname: "Digital-7 Mono"(s) "Digital-7"(s)fullnamelang: "en"(s)slant: 0(i)(s)weight: 80(f)(s)width: 100(f)(s)spacing: 100(i)(s)foundry: "ALTS"(s)file: "assets/fonts/Digital-7 Mono.ttf"(s)index: 0(i)(s)outline: True(s)scalable: True(s)charset:0000: 00000000 ffffffff ffffffff 7fffffff 00000000 00000200 00000000 000000000020: 33180000 00010004 00000000 00000000 00000000 00000000 00000000 00000000
(s)lang: fj|ho|ia|ie|io|nr|om|so|ss|st|sw|ts|uz|xh|zu|kj|kwm|ms|ng|rn|rw|sn|za(s)fontversion: 65798(i)(s)fontformat: "TrueType"(s)decorative: False(s)postscriptname: "Digital-7Mono"(s)color: False(s)symbol: False(s)variable: False(s)fonthashint: True(s)order: 0(i)(s)✦ ❯ npx react-native-asset
