I don't know how you try to add manually a Text as a Label, but as you said, you have to play with Switch, Text|Image... and some Styles to get what you want.
This is a simple example of code:
import React, { useState } from "react"
import { View, Text, StyleSheet, Switch } from "react-native"
export function App() {
const [value, setValue] = useState(false)
const onValueChange = value => {
setValue(value)
}
return (
<View style={styles.container}>
<View style={styles.switchContainer}>
<Text>{value ? "ON" : "OFF"}</Text>
<Switch
style={styles.switch}
onValueChange={onValueChange}
value={value}
/>
</View>
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center"
},
switchContainer: {
flexDirection: "row",
justifyContent: "center",
alignItems: "center"
},
switch: {
marginLeft: 10
}
})

React Native
reactnative.dev › docs › switch
Switch · React Native
1 month ago - Invoked when the user tries to change the value of the switch. Receives the new value as an argument.
Swmansion
docs.swmansion.com › react-native-reanimated › examples › switch
Switch | React Native Reanimated
2 weeks ago - const Switch = ({ value, onPress, style, duration = 400, trackColors = { on: '#82cab2', off: '#fa7f7c' }, }) => { const height = useSharedValue(0); const width = useSharedValue(0); const trackAnimatedStyle = useAnimatedStyle(() => { const color = interpolateColor( value.value, [0, 1], [trackColors.off, trackColors.on] ); const colorValue = withTiming(color, { duration }); return { backgroundColor: colorValue, borderRadius: height.value / 2, }; }); const thumbAnimatedStyle = useAnimatedStyle(() => { const moveValue = interpolate( Number(value.value), [0, 1], [0, width.value - height.value] ); c
Videos
React Native Switch Component Tutorial: How to Implement ...
React Native Tutorial - 61 - Switch
05:29
React Native Switch Component - How to Add On/Off Toggle for Settings ...
06:48
48 - React Native de A à Z - Switch - YouTube
09:05
React Native Tutorial 26 - React Native Custom Switch Component ...
09:35
React Native Tutorial 25 - React Native Switch Example - YouTube
GitHub
github.com › shahen94 › react-native-switch
GitHub - shahen94/react-native-switch: Customisable switch component for RN · GitHub
import { Switch } from 'react-native-switch'; export const App = () => ( <Switch value={true} onValueChange={(val) => console.log(val)} disabled={false} activeText={'On'} inActiveText={'Off'} circleSize={30} barHeight={1} circleBorderWidth={3} backgroundActive={'green'} backgroundInactive={'gray'} circleActiveColor={'#30a566'} circleInActiveColor={'#000000'} renderInsideCircle={() => <CustomComponent />} // custom component to render inside the Switch circle (Text, Image, etc.) changeValueImmediately={true} // if rendering inside circle, change state immediately or wait for animation to comple
Starred by 293 users
Forked by 169 users
Languages JavaScript
npm
npmjs.com › package › react-native-switch
react-native-switch - npm
February 21, 2022 - import { Switch } from 'react-native-switch'; export const App = () => ( <Switch value={true} onValueChange={(val) => console.log(val)} disabled={false} activeText={'On'} inActiveText={'Off'} circleSize={30} barHeight={1} circleBorderWidth={3} backgroundActive={'green'} backgroundInactive={'gray'} circleActiveColor={'#30a566'} circleInActiveColor={'#000000'} renderInsideCircle={() => <CustomComponent />} // custom component to render inside the Switch circle (Text, Image, etc.) changeValueImmediately={true} // if rendering inside circle, change state immediately or wait for animation to comple
» npm install react-native-switch
Published Feb 21, 2022
Version 1.5.1
GitHub
github.com › mymai91 › react-native-toggle-element
GitHub - mymai91/react-native-toggle-element: Switch toggle component for React Native. You can add title, icon, modify component for toggle button. · GitHub
Switch toggle component for React Native. You can add title, icon, modify component for toggle button. - mymai91/react-native-toggle-element
Starred by 178 users
Forked by 20 users
Languages TypeScript 99.7% | JavaScript 0.3%
GitHub
github.com › nithinpp69 › react-native-switch-toggles
GitHub - nithinpp69/react-native-switch-toggles: react Native customizable switch component library
<> <Text style={styles.label}>Simple Switch</Text> <Switch value={isEnabled} onChange={(value) => setIsEnabled(value)} /> </> <> <Text style={styles.label}>Switch with on/off indicator</Text> <Switch value={isEnabled} onChange={(value) => setIsEnabled(value)} activeTrackColor={'#45D058'} renderOffIndicator={() => ( <Text style={{ fontSize: 8, color: 'white' }}>OFF</Text> )} renderOnIndicator={() => ( <Text style={{ fontSize: 8, color: 'white' }}>ON</Text> )} /> </> <> <Text style={styles.label}>Switch with on/off thumb indicator</Text> <Switch size={40} value={isEnabled} onChange={(value) => s
Starred by 19 users
Forked by 3 users
Languages TypeScript 97.3% | JavaScript 2.2% | Shell 0.5% | TypeScript 97.3% | JavaScript 2.2% | Shell 0.5%
Normalize.css
necolas.github.io › react-native-web › docs › switch
Switch // React Native for Web
import { Switch } from 'react-native'; <Switch {...props} />;
Callstack
oss.callstack.com › switch
Switch | React Native Paper
import * as React from 'react'; import { Switch } from 'react-native-paper'; const MyComponent = () => { const [isSwitchOn, setIsSwitchOn] = React.useState(false); const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn); return <Switch value={isSwitchOn} onValueChange={onToggleSwitch} />; }; export default MyComponent;
React Native Archive
archive.reactnative.dev › docs › switch
Switch · React Native Archive
Renders a boolean input · This is a controlled component that requires an onValueChange callback that updates the value prop in order for the component to reflect user actions. If the value prop is not updated, the component will continue to ...
Reactnativereusables
reactnativereusables.com › docs › components › switch
Switch
A control that allows the user to toggle between checked and not checked.