Files
notesnook/apps/mobile/src/components/Container/index.js

23 lines
602 B
JavaScript
Raw Normal View History

2020-05-10 22:15:06 +05:00
import React from 'react';
import {KeyboardAvoidingView, Platform, SafeAreaView} from 'react-native';
2020-01-25 23:47:17 +05:00
import SelectionHeader from '../SelectionHeader';
2020-05-10 22:15:06 +05:00
import {ContainerTopSection} from './ContainerTopSection';
export const Container = ({children, root}) => {
2020-11-03 10:02:09 +05:00
return (
2020-11-09 18:13:47 +05:00
<KeyboardAvoidingView behavior="padding" enabled={Platform.OS === 'ios'}>
2020-05-10 22:15:06 +05:00
<SafeAreaView
style={{
2020-04-19 21:27:03 +05:00
height: '100%',
}}>
2020-05-10 22:15:06 +05:00
<SelectionHeader />
<ContainerTopSection root={root} />
2020-04-19 21:27:03 +05:00
{children}
2020-05-10 22:15:06 +05:00
</SafeAreaView>
2020-04-19 21:27:03 +05:00
</KeyboardAvoidingView>
);
};
export default Container;