File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const ReactNative = require('react-native');
33const { Component, } = React ;
44const { View, StyleSheet, } = ReactNative ;
55
6- const StaticContainer = require ( 'react-static-container ' ) ;
6+ const StaticContainer = require ( './StaticContainer ' ) ;
77
88const SceneComponent = ( Props ) => {
99 const { shouldUpdated, ...props , } = Props ;
Original file line number Diff line number Diff line change 1+ var React = require ( 'React' ) ;
2+
3+ class StaticContainer extends React . Component {
4+
5+ shouldComponentUpdate ( nextProps : Object ) : boolean {
6+ return ! ! nextProps . shouldUpdate ;
7+ }
8+
9+ render ( ) : ?ReactElement {
10+ var child = this . props . children ;
11+ if ( child === null || child === false ) {
12+ return null ;
13+ }
14+ return React . Children . only ( child ) ;
15+ }
16+
17+ }
18+
19+ module . exports = StaticContainer ;
Original file line number Diff line number Diff line change 2929 },
3030 "homepage" : " https://github.com/brentvatne/react-native-scrollable-tab-view#readme" ,
3131 "dependencies" : {
32- "react-static-container" : " ^1.0.1" ,
3332 "react-timer-mixin" : " ^0.13.3"
3433 },
3534 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments