之前遇到了好多坑,现在开始记录一个一个填~
1.Check the render method of TabBarIcon
解决:安装react-native-vector-icons
引入:import Ionicons from "react-native-vector-icons/Ionicons"
引用:
2.box-shadow在安卓不起作用
然后我们在Container组件添加一个属性elevation
3. requireNativeComponent: “BVLinearGradient” was not found in the UIManager.
解决:
1.expo install expo-linear-gradient
2.import {LinearGradient} from ‘expo-linear-gradient’;
已解决!
借鉴:https://stackoverflow.com/questions/58155003/bvlineargradient-was-not-found-in-the-uimanager
4.“BlurView” was not found in the UIManager.
解决:
1.expo install expo-blur
2.import {BlurView} from ‘expo-blur’