mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-20 14:58:35 -04:00
* 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>
20 lines
457 B
JavaScript
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;
|