mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
Fix the missing setRef handler (#91)
This commit is contained in:
committed by
Krzysztof Magiera
parent
dd0d564cd3
commit
0d082ad985
@@ -58,7 +58,7 @@ export class Screen extends React.Component {
|
||||
|
||||
return <Animated.View {...props} ref={this.setRef} />;
|
||||
} else if (version.minor >= 57) {
|
||||
return <AnimatedNativeScreen {...this.props} />;
|
||||
return <AnimatedNativeScreen {...this.props} ref={this.setRef} />;
|
||||
} else {
|
||||
// On RN version below 0.57 we need to wrap screen's children with an
|
||||
// additional View because of a bug fixed in react-native/pull/20658 which
|
||||
|
||||
Reference in New Issue
Block a user