4.6.201908221114 • Published 5 years ago

@dfeidao/fd-m000021 v4.6.201908221114

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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>);
}