我正在创建一个新的反应本机应用程序并使用反应本机纸。这是not一个 Expo 应用程序,但一个普通的 React 本机应用程序。
React Native版本> 0.6.0,我已按照react-native-paper安装中描述的步骤进行操作https://callstack.github.io/react-native-paper/getting-started.html https://callstack.github.io/react-native-paper/getting-started.html
React-Native-Paper组件的使用方式如下
<Avatar.Icon size={24} icon="folder" />
However when I run the app with the command react-native run-ios
the compilation is successful and the app opens but the red screen appears as below
找到了解决方案。
我必须将以下内容添加到info.plist
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
</array>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)