File tree 1 file changed +26
-14
lines changed
1 file changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ type TabPressEvent = {
47
47
48
48
type TouchableProps = TouchableWithoutFeedbackProps & {
49
49
key : string ;
50
+ route : Route ;
50
51
children : React . ReactNode ;
51
52
borderless ?: boolean ;
52
53
centered ?: boolean ;
@@ -277,20 +278,30 @@ const MAX_TAB_WIDTH = 168;
277
278
const BAR_HEIGHT = 56 ;
278
279
const FAR_FAR_AWAY = 9999 ;
279
280
280
- const Touchable = TouchableRipple . supported
281
- ? TouchableRipple
282
- : ( {
283
- style,
284
- children,
285
- borderless : _0 ,
286
- centered : _1 ,
287
- rippleColor : _2 ,
288
- ...rest
289
- } : TouchableProps ) => (
290
- < TouchableWithoutFeedback { ...rest } >
291
- < View style = { style } > { children } </ View >
292
- </ TouchableWithoutFeedback >
293
- ) ;
281
+ const Touchable = ( {
282
+ route : _0 ,
283
+ style,
284
+ children,
285
+ borderless,
286
+ centered,
287
+ rippleColor,
288
+ ...rest
289
+ } : TouchableProps ) =>
290
+ TouchableRipple . supported ? (
291
+ < TouchableRipple
292
+ { ...rest }
293
+ borderless = { borderless }
294
+ centered = { centered }
295
+ rippleColor = { rippleColor }
296
+ style = { style }
297
+ >
298
+ { children }
299
+ </ TouchableRipple >
300
+ ) : (
301
+ < TouchableWithoutFeedback { ...rest } >
302
+ < View style = { style } > { children } </ View >
303
+ </ TouchableWithoutFeedback >
304
+ ) ;
294
305
295
306
class SceneComponent extends React . PureComponent < any > {
296
307
render ( ) {
@@ -842,6 +853,7 @@ class BottomNavigation extends React.Component<Props, State> {
842
853
843
854
return renderTouchable ( {
844
855
key : route . key ,
856
+ route,
845
857
borderless : true ,
846
858
centered : true ,
847
859
rippleColor : touchColor ,
You can’t perform that action at this time.
0 commit comments