Skip to content

Commit d6d94c4

Browse files
authored
Fix combo example crashing. (#3587)
## Description Combo example is crashing due to an invalid prop being passed down to one of the components. This code was always invalid, but wasn't crashing up until recently. The invalid part of the code was removed in this PR - this removal does not change any expected behaviour. ## Test plan Open combo example
1 parent 3513778 commit d6d94c4

File tree

1 file changed

+1
-5
lines changed
  • apps/common-app/src/release_tests/combo

1 file changed

+1
-5
lines changed

apps/common-app/src/release_tests/combo/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { PressBox } from '../../basic/multitap';
2828

2929
import { LoremIpsum } from '../../common';
3030

31-
const CHILD_REF = 'CHILD_REF';
32-
3331
const WrappedSlider = createNativeWrapper(Slider, {
3432
shouldCancelWhenOutside: false,
3533
shouldActivateOnStart: true,
@@ -85,9 +83,7 @@ class TouchableHighlight extends Component<
8583
: 1,
8684
}}>
8785
{/* @ts-ignore not typed properly? */}
88-
{React.cloneElement(React.Children.only(this.props.children), {
89-
ref: CHILD_REF,
90-
})}
86+
{React.cloneElement(React.Children.only(this.props.children))}
9187
</View>
9288
</View>
9389
</TapGestureHandler>

0 commit comments

Comments
 (0)