我已经安装了react-native-vecotor
。并且在使用它们时,它们会显示模糊的符号。如何使用这个库?平台:Android
import React from 'react';
import {View,Text,StyleSheet} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
const SearchBar = () => {
return (
<View style={styles.background}>
<Icon name="md-body" color='#000' size={25} />
</View>
);
};
const styles = StyleSheet.create({
background:{
backgroundColor:'#F0EEEE',marginHorizontal: 15,height:45,borderRadius:5,}
});
export default SearchBar;