I am trying to add social icons from react native elements library to my app.
It works perfectly fine on iOS emulator.
However, on android emulator or the physical device (iOS and android) expo clients, the icons do not render correctly.
See below -
Ideally this should be rendered with the icon logo. I also see this as a problem with images in general on android. Can you let me know what I’m missing? Thank you.
import { SocialIcon } from 'react-native-elements'
function Social(props) {
return (
<View style={styles.container}>
<SocialIcon type='facebook'
onPress={() => Linking.openURL('https://www.facebook.com/') }/>
<SocialIcon type='twitter'
onPress={() => Linking.openURL('https://twitter.com/') }/>
<SocialIcon type='linkedin'
onPress={() => Linking.openURL('https://www.linkedin.com/') }/>
<SocialIcon type='instagram'
onPress={() => Linking.openURL('https://www.instagram.com/') } />
</View>
);
}