react-native-dark-mode-switch
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-alpha.1 • Public • Published

Welcome to the React Native Dark Mode Switch 👋

Product: demo

Github: evanbacon License: MIT

Based on a component from the home screen of twizzle by @thekitze. Converted to Expo for use in iOS, Android, and Web apps.

Twitter: baconbrix Twitter: kitze

Install

yarn add react-native-dark-mode-switch && expo install react-native-svg
 
# or 
 
npm install --save react-native-dark-mode-switch && expo install react-native-svg

Example

import * as React from 'react';
import Switch from 'react-native-dark-mode-switch';
 
export default function App() {
  const [value, setValue] = React.useState(true);
  return <Switch value={value} onChange={value => setValue(value)} />;
}

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Evan Bacon.
This project is MIT licensed.

Package Sidebar

Install

npm i react-native-dark-mode-switch

Weekly Downloads

6

Version

0.0.0-alpha.1

License

MIT

Unpacked Size

5.5 kB

Total Files

6

Last publish

Collaborators

  • evanbacon