Skip to content

A beautiful React dark mode switch component for iOS, Android, and Web

License

Notifications You must be signed in to change notification settings

EvanBacon/expo-dark-mode-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 30, 2021
d27025a Β· Jul 30, 2021

History

17 Commits
Jul 30, 2021
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020
Apr 20, 2020
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020
Apr 20, 2020
Jan 21, 2020
Jul 30, 2021
Jan 21, 2020
Jul 30, 2021

Repository files navigation

Welcome to the Expo 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 expo-dark-mode-switch && expo install react-native-svg

# or

npm install --save expo-dark-mode-switch && expo install react-native-svg

Example

import * as React from 'react';
import Switch from 'expo-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.