Package Exports
- react-native-switch
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-switch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-switch
Customisable switch component for RN
Installation
$ npm install --save react-native-switchor
yarn add react-native-switchUsage
import { Switch } from 'react-native-switch';
export const App = () => (
<Switch
value={true}
onValueChange={(val) => console.log(val)}
disabled={false}
activeText={'On'}
inActiveText={'Off'}
backgroundActive={'green'}
backgroundInactive={'gray'}
circleActiveColor={'#30a566'}
circleInActiveColor={'#000000'}
/>
)