style prop applied to SvgIcon generating warning
danieldai opened this issue · comments
Daniel Dai commented
I want to adjust the position of icon with style
<Icons style={styles.place} name="Place" width="12" height="12"/>
const styles = StyleSheet.create({
place: {
marginTop: 4,
marginLeft: 2,
},
})
the position is changed, but it generates some annoying warning:
Warning: Failed prop type: Invalid prop `style` supplied to `SvgIcon`.
Daniel Dai commented
the work around is use in this way
<Icons style={[styles.place]} name="Place" width="12" height="12"/>
or
<Icons style={{marginTop: 4, marginLeft: 2,}} name="Place" width="12" height="12"/>
Matt Stow commented
Sorry, I apparently missed this for 6 months :-. Will fix!
Matt Stow commented
I just published 0.8.1 which fixes this issue