File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,15 @@ import Animated, {
1414} from 'react-native-reanimated' ;
1515import { widthPercentageToDP } from 'react-native-responsive-screen' ;
1616
17+ export interface TileProps {
18+ /** Styles of the default tile */
19+ style : ViewStyle ;
20+ /** The React Native Reanimated transform style with translateX */
21+ transform : ViewStyle [ 'transform' ] ;
22+ /** The full width of tile */
23+ width : number ;
24+ }
25+
1726interface SegmentedControlProps {
1827 /**
1928 * The Segments Text Array
@@ -72,6 +81,10 @@ interface SegmentedControlProps {
7281 * Badge Text Styles
7382 */
7483 badgeTextStyle ?: TextStyle ;
84+ /**
85+ * Render a custom tile component
86+ */
87+ renderTile ?: ( props : TileProps ) => React . ReactNode ;
7588}
7689
7790const defaultShadowStyle = {
You can’t perform that action at this time.
0 commit comments