Page MenuHomePhorge

community-creation-content-container.react.js
No OneTemporary

Size
772 B
Referenced Files
None
Subscribers
None

community-creation-content-container.react.js

// @flow
import { useHeaderHeight } from '@react-navigation/elements';
import * as React from 'react';
import { View } from 'react-native';
import KeyboardAvoidingView from '../components/keyboard-avoiding-view.react.js';
type ViewProps = React.ElementConfig<typeof View>;
type Props = ViewProps;
function CommunityCreationContentContainer(props: Props): React.Node {
const { children, style, ...rest } = props;
const headerHeight = useHeaderHeight();
const backgroundStyle = React.useMemo(
() => ({ marginTop: headerHeight, flex: 1 }),
[headerHeight],
);
return (
<KeyboardAvoidingView behavior="padding" style={backgroundStyle} {...rest}>
{children}
</KeyboardAvoidingView>
);
}
export default CommunityCreationContentContainer;

File Metadata

Mime Type
text/x-java
Expires
Fri, Jan 9, 12:58 PM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5874828
Default Alt Text
community-creation-content-container.react.js (772 B)

Event Timeline