diff --git a/zh-cn/react-native-theme-switch-animation.md b/zh-cn/react-native-theme-switch-animation.md new file mode 100644 index 0000000000000000000000000000000000000000..c05d1c1ffe859ae3a3fad899e80964d9f1c8faba --- /dev/null +++ b/zh-cn/react-native-theme-switch-animation.md @@ -0,0 +1,248 @@ +> 模板版本:v0.2.2 + +

+

react-native-theme-switch-animation

+

+

+ + Supported platforms + + + License + +

+ +> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-theme-switch-animation) + + +## 安装与使用 + +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-library/react-native-theme-switch-animation Releases](https://github.com/react-native-oh-library/react-native-theme-switch-animation/releases),并下载适用版本的 tgz 包。 + + + +#### **npm** + +```bash +npm install @react-native-oh-tpl/react-native-theme-switch-animation@file:# +``` + +#### **yarn** + +```bash +yarn add @react-native-oh-tpl/react-native-theme-switch-animation@file:# +``` + + + +下面的代码展示了这个库的基本使用场景: + +>[!WARNING] 使用时 import 的库名不变。 + +```js +import * as React from 'react'; +import { StyleSheet, View, Button, Text } from 'react-native'; +import switchTheme from 'react-native-theme-switch-animation'; + +export function ReactNativeThemeSwitchAnimationDemo() { + const [theme, setTheme] = React.useState('light'); + + return ( + + + + tests + + + + +