# ty-react-native-modal **Repository Path**: rn-mi/ty-react-native-modal ## Basic Information - **Project Name**: ty-react-native-modal - **Description**: TY项目react-native-modal仓库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-01 - **Last Updated**: 2025-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > 模板版本:v13.0.1-0.0.1

react-native-modal

Supported platforms License

> [!TIP][git 地址](https://gitee.com/rn-mi/ty-react-native-modal) ## 安装与使用 进入到工程目录并输入以下命令: #### **npm** ```bash npm install @tuya-oh/react-native-modal ``` #### **yarn** ```bash yarn add @tuya-oh/react-native-modal ``` 下面的代码展示了这个库的基本使用场景: > [!WARNING] 使用时 import 的库名不变。 ```ts import React, {Component} from 'react'; import {Button, StyleSheet, Text, View} from 'react-native'; import Modal from 'react-native-modal'; type Props = { onPress: () => any; }; type State

= P & { visible: boolean; }; const DefaultModalContent: React.FC = props => ( Hi 👋!