Make broadcast picker required in iOS only

This commit is contained in:
Tiago Jacobs
2022-02-13 12:36:03 -03:00
parent a751360632
commit 8985ea02d9
4 changed files with 27 additions and 21 deletions

24
react/Header.js Normal file
View File

@@ -0,0 +1,24 @@
import React from 'react';
import SystemBroadcastPicker from './ios/native-components/BBBN_SystemBroadcastPicker';
import {Platform, StyleSheet} from 'react-native';
const styles = StyleSheet.create({
broacastPicker: {
...Platform.select({
ios: {
marginTop: 50,
height: 50,
widht: 50,
backgroundColor: '#EEE',
},
}),
},
});
const Header = ({children, title}): Node => {
return Platform.select({
ios: <SystemBroadcastPicker style={styles.broacastPicker} />,
});
};
export default Header;