BS
Size: a a a
BS
J
J
J
VP
MD
J
MD
d
TN
TN
BS
VP
S
styled-components
на native-base
import styled from 'styled-components/native';
export const Container = styled.SafeAreaView`
flex: 1;
align-items: center;
justify-content: space-between;
`;
import { SafeAreaView } from 'react-navigation';
import { View } from 'native-base';
export class Container extends SafeAreaView {
render() {
let style = {
'flex': 1,
'alignItems': 'center',
'justifyContent': 'space-between'
}
return (
<View style={[style, {...this.props.style}]}>
...
</View>
)
}
}
S
View
, или SafeAreaView
?MD
styled-components
на native-base
import styled from 'styled-components/native';
export const Container = styled.SafeAreaView`
flex: 1;
align-items: center;
justify-content: space-between;
`;
import { SafeAreaView } from 'react-navigation';
import { View } from 'native-base';
export class Container extends SafeAreaView {
render() {
let style = {
'flex': 1,
'alignItems': 'center',
'justifyContent': 'space-between'
}
return (
<View style={[style, {...this.props.style}]}>
...
</View>
)
}
}