Skip to content

Commit fc7711e

Browse files
authored
Include TouchableOpacityProps in SwitchProps (#2613)
1 parent 5862fa8 commit fc7711e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/switch/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React, {Component} from 'react';
22
import {StyleSheet, Animated, Easing, StyleProp, ViewStyle, ColorValue} from 'react-native';
33
import {Colors, BorderRadiuses} from '../../style';
44
import {Constants, asBaseComponent} from '../../commons/new';
5-
import TouchableOpacity from '../touchableOpacity';
5+
import TouchableOpacity, {TouchableOpacityProps} from '../touchableOpacity';
66

77
const INNER_PADDING = 2;
88
const DEFAULT_WIDTH = 42;
99
const DEFAULT_HEIGHT = 24;
1010
const DEFAULT_THUMB_SIZE = 20;
1111

12-
export type SwitchProps = {
12+
export type SwitchProps = TouchableOpacityProps & {
1313
/**
1414
* The value of the switch. If true the switch will be turned on. Default value is false
1515
*/

0 commit comments

Comments
 (0)