Skip to content

Commit

Permalink
Remove console warnings for innerViewNode/Ref
Browse files Browse the repository at this point in the history
Summary:
Remove these warnings until the methods in ScrollResponder have been moved into ScrollView, so that unactionable warnings aren't firing.

Changelog:
[General][Removed] Remove console warnings for innerViewNode/Ref in ScrollView

Reviewed By: TheSavior

Differential Revision: D20850624

fbshipit-source-id: ce90988e204c3cc3b93536842ec3caa12cf6994e
  • Loading branch information
kacieb authored and facebook-github-bot committed Apr 4, 2020
1 parent 5c086b4 commit 3246f68
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,18 +818,10 @@ class ScrollView extends React.Component<Props, State> {
};

getInnerViewNode(): ?number {
console.warn(
'`getInnerViewNode()` is deprecated. This will be removed in a future release. ' +
'Use <ScrollView innerViewRef={myRef} /> instead.',
);
return ReactNative.findNodeHandle(this._innerViewRef);
}

getInnerViewRef(): ?React.ElementRef<typeof View> {
console.warn(
'`getInnerViewRef()` is deprecated. This will be removed in a future release. ' +
'Use <ScrollView innerViewRef={myRef} /> instead.',
);
return this._innerViewRef;
}

Expand Down

0 comments on commit 3246f68

Please sign in to comment.