Files
iNaturalistReactNative/src/components/SharedComponents/ViewWrapper.js
Chris 01099be1ce Create tab navigator (#507)
* Create tab navigator

* Add add obs button

* lint

* Wire up routes

* Fix login

* Add keys

* Fix delayed state bug

* Lint

* space parens

* Add details to tab nav

* Lint

* re-add back btn

* Rebase off main

* Fix format

* Fix back button

* Remove unused change

* Replace lowercase folder

* I don't know why that is needed

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2023-03-10 14:57:32 +01:00

20 lines
457 B
JavaScript

// @flow strict-local
import { SafeAreaView } from "components/styledComponents";
import * as React from "react";
import { StatusBar } from "react-native";
type Props = {
children: React.Node,
testID?: string,
};
const ViewWrapper = ( { children, testID }: Props ): React.Node => (
<SafeAreaView className="flex-1 bg-white" testID={testID}>
<StatusBar barStyle="dark-content" />
{children}
</SafeAreaView>
);
export default ViewWrapper;