# react-native-message **Repository Path**: kigo_zou/react-native-message ## Basic Information - **Project Name**: react-native-message - **Description**: 基于react-native弹出消息 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-02-10 - **Last Updated**: 2022-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-message #### 介绍 基于react-native弹出消息 组件提供了一些静态方法,使用方式和参数如下: - `message.success(content, [duration], onClose)` - `message.error(content, [duration], onClose)` - `message.info(content, [duration], onClose)` - `message.warning(content, [duration], onClose)` - `message.loading(content, [duration], onClose)` - `message.config(marginTop)` | 参数 | 说明 | 类型 | 默认值 | | -------- | --------------------------------------------- | ------------------------- | ------ | | content | 提示内容 | string\|ReactNode | - | | duration | 自动关闭的延时,单位秒 | number | 3 | | onClose | 关闭时触发的回调函数 | Function | - | | marginTop | 配置上距离,每次都会更新 | number | 32 |