react native toggle button with text

JavaScript
import React, { Component } from 'react'
import { View, Text, Button } from 'react-native'

export default class App extends Component {
  state = {
    textValue: 'Change me'
  }

  onPress = () => {
    this.setState({
      textValue: 'THE NEW TEXT GOES HERE'
    })
  }

  render() {
    return (
      <View style={{paddingTop: 25}}>
        <Text>{this.state.textValue}</Text>
        <Button title="Change Text" onPress={this.onPress} />
      </View>
    )
  }
}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

Also in JavaScript: