4.6.201909241604 • Published 5 years ago
@dfeidao/fd-am000029 v4.6.201909241604
snack-bar-hold 带点击事件的提示信息
Installation
yarn add --dev @dfeidao/fd-am000029
Params
属性 | 描述 |
---|---|
message | 显示的文字信息 |
position | 显示的位置 'top' | ''bottom' |
text_color | 显示的文字颜色 |
background_color | 提示框的背景颜色 |
action_text | 点击按钮显示的文字信息 |
action_text_color | 点击按钮文字颜色 |
heigh | 提示框高度 |
return
返回值,通过返回ture值进行判断来触发事件
Example
样列
import { Alert } from 'react-native';
import am029 from '@dfeidao/fd-am000029';
const c = await am029('求点击,不点击不消失', 'top', '#ffffff', '#444444', null, '点击', '#ff490b');
if (c) {
Alert.alert('456789');
}
图片展示