@wordpress/components
Version:
UI components for WordPress.
22 lines (17 loc) • 488 B
JavaScript
/**
* External dependencies
*/
import { FlatList } from 'react-native';
/**
* Internal dependencies
*/
import KeyboardAvoidingView from '../keyboard-avoiding-view';
export const KeyboardAwareFlatList = ( props ) => (
<KeyboardAvoidingView style={ { flex: 1 } }>
<FlatList { ...props } />
</KeyboardAvoidingView>
);
KeyboardAwareFlatList.handleCaretVerticalPositionChange = () => {
//no need to handle on Android, it is system managed
};
export default KeyboardAwareFlatList;