mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
feat: update js layout
This commit is contained in:
@@ -264,7 +264,7 @@ const Switch: component(
|
||||
disabled,
|
||||
onTintColor: trackColorForTrue,
|
||||
style: StyleSheet.compose(
|
||||
{height: 31, width: 51},
|
||||
{alignSelf: 'flex-start' as const},
|
||||
StyleSheet.compose(
|
||||
style,
|
||||
ios_backgroundColor == null
|
||||
|
||||
+1
@@ -58,4 +58,5 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
||||
export default (codegenNativeComponent<SwitchNativeProps>('Switch', {
|
||||
paperComponentName: 'RCTSwitch',
|
||||
excludedPlatforms: ['android'],
|
||||
interfaceOnly: true,
|
||||
}): ComponentType);
|
||||
|
||||
Reference in New Issue
Block a user