MCPcopy
hub / github.com/ptomasroos/react-native-scrollable-tab-view / componentDidUpdate

Function componentDidUpdate

index.js:117–125  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

115 },
116
117 componentDidUpdate(prevProps) {
118 if (this.props.children !== prevProps.children) {
119 this.updateSceneKeys({ page: this.state.currentPage, children: this.props.children, });
120 }
121
122 if (this.props.page >= 0 && this.props.page !== this.state.currentPage) {
123 this.goToPage(this.props.page);
124 }
125 },
126
127 componentWillUnmount() {
128 if (Platform.OS === 'ios') {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…