FAB Not displayed on IOS
See original GitHub issueDescribe the bug I want to display a FAB on IOS app in React Native.
To Reproduce My react component looks like this:
export default class MapScreen extends Component { render() { return ( <View style={{ justifyContent: "center", width: DEVICE_WIDTH, height: DEVICE_HEIGHT }}> <View style={{flexDirection: 'row', flexWrap: 'wrap', width: 200, height: 200, backgroundColor:"#ff0000"}}> <Fab icon={'add'} /> <Fab backgroundColor={'#E91E63'} icon={'archive'} /> <Fab backgroundColor={'#F44336'} icon={'delete'} /> <Fab backgroundColor={'#009688'} icon={'edit'} /> <Fab backgroundColor={'black'} icon={'attach-money'} /> <Fab disabled backgroundColor={'#009688'} icon={'delete'} /> </View> </View> ); } } const DEVICE_WIDTH = Dimensions.get('window').width; const DEVICE_HEIGHT = Dimensions.get('window').height;
Expected behavior On Android I get this: Andorid Screenshot And on IOS i get this: IOS Screenshot Screenshots
Andorid Screenshot IOS Screenshot
Desktop (please complete the following information):
- OS: IOS
- Version 0.2.5
Smartphone (please complete the following information):
- Device: IPhone 11 simulator
- OS: IOS 13
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Here’s a testRepo. Pretty boring, but shows what I’m seeing at least: https://github.com/JakeHadley/fabTest. Installed
material-bread
, vector icons, rn-svg, and did pod install, ran withnpx react-native run-ios
with the default sim that pops up. Let me know if you need more details.@codypearce Coming back to this, I’m still seeing this issue. Super basic setup as before. iOS simulator, RN 62. Latest on Material-bread