ios刘海屏遮挡
https://dfeidao.gitee.io/widgets-mobile/
Installation
yarn add --dev @dfeidao/fd-m000000
这个控件需要在tpl的最外层使用
当参数forceInset不填时
当参数forceInset的top为never时
当参数forceInset的bottom为never时
import SafeAreaView from '@dfeidao/fd-m000021';
import React, { Component } from 'react';
import { Text, View } from 'react-native';
export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((ev: BaseSyntheticEvent<T>) => void), s: (...class_names: string[]) => {}, d: (d: string) => {}) {
return (<SafeAreaView forceInset={{ top: 'never' }}>
<View>
<Text>111</Text>
</View>
</SafeAreaView>);
}