<commit_before>// @flow

import type { ViewStyle } from '../types/styles';

import * as React from 'react';
import { View } from 'react-native';
import { useSafeArea } from 'react-native-safe-area-context';

type Props = {|
  style?: ViewStyle,
  children?: React.Node,
|};
function InsetSafeAreaView(props: Props) {
  const insets = useSafeArea();
  const style = [{ paddingTop: insets.top }, props.style];
  return <View style={style}>{props.children}</View>;
}

export default InsetSafeAreaView;
<commit_msg>[native] Use SafeAreaView instead of useSafeArea<commit_after>// @flow

import * as React from 'react';
import { View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';

const edges = ['top'];

function InsetSafeAreaView(props: React.ElementProps<typeof View>) {
  return <SafeAreaView edges={edges} {...props} />;
}

export default InsetSafeAreaView;

{'fraction_non_alphanumeric': 0.14810690423162584, 'fraction_numerical': 0.0, 'mean_word_length': 4.953642384105961, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7237099', 'n_tokens_mistral': 283, 'n_tokens_neox': 281, 'n_words': 77}