Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native toggle button with text

import { Switch } from 'react-native-switch';

<Switch
	value={true}  
	onValueChange={(val) => console.log(val)}
	disabled={false}
	activeText={'On'}
	inActiveText={'Off'}
	backgroundActive={'green'}
	backgroundInactive={'gray'}
	circleActiveColor={'#30a566'}
	circleInActiveColor={'#000000'}
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #toggle #button #text
ADD COMMENT
Topic
Name
3+8 =