4.6.201909241604 • Published 5 years ago

@dfeidao/fd-am000029 v4.6.201909241604

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

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

图片展示

示例