# rntpc_react-native-theme-switch-animation
**Repository Path**: openharmony-sig/rntpc_react-native-theme-switch-animation
## Basic Information
- **Project Name**: rntpc_react-native-theme-switch-animation
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: https://gitee.com/openharmony-sig/rntpc_react-native-theme-switch-animation
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-10-14
- **Last Updated**: 2025-05-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 🚨 **重要提示 | IMPORTANT**
>
> **⚠️ 此代码仓已归档。新地址请访问 [rntpc_react-native-theme-switch-animation](https://gitcode.com/openharmony-sig/rntpc_react-native-theme-switch-animation)。| ⚠️ This repository has been archived. For the new address, please visit [rntpc_react-native-theme-switch-animation](https://gitcode.com/openharmony-sig/rntpc_react-native-theme-switch-animation).**
>
---
>
# react-native-theme-switch-animation
A Plug & Play Animations for Switching (Dark/Light) themes. 🌗
### 🦄 Features
- ✅ Supports multiple animation types.
- ✅ Blazing fast - [60/120]fps
- ✅ Plug and Play, doesn't matter what you use for switching themes
- ✅ Can be used for different theme colors, not necessarily for dark/light
- ✅ Supports turbo modules for new architecture
## Installation
```sh
npm install react-native-theme-switch-animation
```
OR
```sh
yarn add react-native-theme-switch-animation
```
## Link
(if you are using expo managed project, do a prebuild - `npx expo prebuild`)
```
npx pod-install
```
## For React Native Versions 0.67 and Below
- [follow those instructions](https://github.com/WadhahEssam/react-native-theme-switch-animation/blob/main/installation-for-react-native-below-67.md)
## Usage
```js
import switchTheme from 'react-native-theme-switch-animation';
export default function Example() {
const [theme, setTheme] = React.useState('light');
return (