You can resize the switch by using transform property from styling,
<Switch value={true}
style={{ transform: [{ scaleX: .8 }, { scaleY: .8 }] }}
onValueChange={(value) => {}} />
also for best result determine scaling values based on screen dimension.
Answer from Eltaf Hussain on Stack Overflow Top answer 1 of 4
226
You can resize the switch by using transform property from styling,
<Switch value={true}
style={{ transform: [{ scaleX: .8 }, { scaleY: .8 }] }}
onValueChange={(value) => {}} />
also for best result determine scaling values based on screen dimension.
2 of 4
11
To expand on what was already said, this is how you can handle screen sizes:
import { moderateScale } from 'react-native-size-matters';
...
<Switch
style={{ transform: [{ scaleX: moderateScale(1, 0.2) }, { scaleY:
moderateScale(1, 0.2) }] }} />
GitHub
github.com › facebook › react-native › issues › 7573
Cannot alter size of Switch · Issue #7573 · facebook/react- ...
May 15, 2016 - It kind of looks ridiculous having a set up with several switches on different devices. The only possible workaround I found is to manually add the style tag style={{transform: [{scaleX: 2}, {scaleY: 2}]}} but that is really not very practical since you'd have to write a detect each screen size and write an appropriate transform value.
Published May 15, 2016
Author hasen6
React Native
reactnative.dev › docs › switch
Switch · React Native
1 month ago - 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 render the supplied value prop instead of the expected ...
npm
npmjs.com › package › react-native-switch
react-native-switch - npm
February 21, 2022 - Higher number = more space from LEFT of the circle to BEGINNING of the slider switchWidthMultiplier={2} // multiplied by the `circleSize` prop to calculate total width of the Switch switchBorderRadius={30} // Sets the border Radius of the switch ...
» npm install react-native-switch
Published Feb 21, 2022
Version 1.5.1
Syncfusion
ej2.syncfusion.com › domain url › react › documentation › switch › how to › change size
Change size in React Switch component | Syncfusion
Switch components are available in two size variants: default and small. Render a compact Switch by setting the cssClass property to e-small, useful for space-constrained layouts or mobile interfaces where smaller controls improve usability.
Normalize.css
necolas.github.io › react-native-web › docs › switch
Switch // React Native for Web
The value of the switch. If true the switch will be turned on. Custom sizes can be created using styles. ... React Native for Web – Copyright © Nicolas Gallagher and Meta Platforms, Inc.
GitHub
github.com › App2Sales › react-native-switch-selector › issues › 9
Adjusting Width and height · Issue #9 · App2Sales/react-native-switch-selector
March 28, 2018 - I cant figure out how to adjust width and height, I tried putting it inside a container along with other elements but it disappears
Author farhat-h
GitHub
github.com › facebook › react-native › issues › 29047
Cannot modify the width of Switch component · Issue #29047 · facebook/react-native
June 4, 2020 - On Android, it is possible to modify the width of a Switch by using the android:switchMinWidth attribute ... There is no such attribute in React-Native.
Author HectorRicardo
npm
npmjs.com › package › @minkyumdev › react-native-switch
@minkyumdev/react-native-switch - npm
January 27, 2026 - import { Switch } from '@minkyumdev/react-native-switch'; function MyComponent() { const [enabled, setEnabled] = useState(false); return ( <Switch value={enabled} onValueChange={setEnabled} size="medium" activeColor="#34C759" inactiveColor="#E5E5EA" /> ); }
» npm install @minkyumdev/react-native-switch
Published Jan 27, 2026
Version 1.0.4
Stack Overflow
stackoverflow.com › questions › 65655475 › how-to-change-the-width-of-react-native-switch-component
How to change the width of react-native switch component - Stack Overflow
"#f4f3f4" : "#f5dd4b"} ... }, Switch: { margin: 20, width: "35%", transform:[{ scaleX: 1.0 }, { scaleY: 1.0 }] }, SwitchText: { textAlign: "center", marginTop: "auto", marginBottom: "auto", fontSize: 16 }...
GitHub
github.com › microsoft › fluentui-react-native › issues › 3180
Thumb size on Switch component does not adhere to `thumbSize` Switch Token in the pressed down state. · Issue #3180 · microsoft/fluentui-react-native
October 24, 2023 - return useMemo(() => { // ... const switchTokens: SwitchTokens = { width: '100%', height: '100%', fontSize: 12, trackHeight: 12, trackWidth: 24, thumbMargin: 2, thumbSize: 8, padding: 2, pressed: { thumbSize: 8, // <-- this size is not used ...
Author phitonias
Scaler
scaler.com › home › topics › react-native › react native switch
React Native Switch- Scaler Topics
May 16, 2023 - This article on Scaler Topics covers React Native Switch in React Native with examples, explanations, and use cases, read to know more.
GeeksforGeeks
geeksforgeeks.org › react native › react-native-switch-api
React Native Switch API - GeeksforGeeks
February 16, 2026 - style – Applies custom styling like margin, size, or position. testID – Used to identify the switch in testing. Now let’s start with the implementation. Now, create a project with the following command. ... Note: Replace the app-name with your app name for example : react-native-demo-app.
npm
npmjs.com › package › react-native-switch-toggles-2
react-native-switch-toggles-2 - npm
March 22, 2022 - import Switch from 'react-native-switch-toggles-2'; const [isEnabled, setIsEnabled] = React.useState(false); .... <Switch size={50} value={isEnabled} onChange={(value) => setIsEnabled(value)} renderOffIndicator={() => <Text style={{ fontSize: 16, color: 'white' }}>🌚</Text>} renderOnIndicator={() => <Text style={{ fontSize: 16, color: 'white' }}>🌝</Text>} /> <Switch size={50} value={isEnabled} onChange={(value) => setIsEnabled(value)} activeTrackColor={"#45D058"} renderOffIndicator={() => <Text style={{ fontSize: 16, color: 'white' }}>OFF</Text>} renderOnIndicator={() => <Text style={{ fontSize: 16, color: 'white' }}>ON</Text>} />
» npm install react-native-switch-toggles-2
Published Mar 22, 2022
Version 2.3.0
Author Nithin P P
Programmersought
programmersought.com › article › 6968504569
React Native Switch component size - Programmer Sought
React Native Switch component size, Programmer Sought, the best programmer technical posts sharing site.