@@ -6,30 +6,16 @@ import {
66 Dimensions ,
77 StyleSheet ,
88 registerComponent ,
9- Navigation ,
9+ withNavigation ,
1010} from '../../react-ape/reactApeEntry' ;
1111
12- import Spinner from './Spinner' ;
1312import Sidebar from './Sidebar' ;
1413import Grid from './Grid' ;
1514import Clock from './Clock' ;
1615import Slideshow from './Slideshow' ;
1716
1817const { width, height} = Dimensions . get ( 'window' ) ;
1918
20- const { withNavigation} = Navigation ;
21-
22- // Register Custom Components
23- const custom = {
24- /*
25- <custom.Spinner
26- degrees={degrees}
27- style={{ top: height / 4 + 8, left: width / 2 - 60, color: 'white' }}
28- />
29- */
30- Spinner : registerComponent ( 'Spinner' , Spinner ) ,
31- } ;
32-
3319const styles = StyleSheet . create ( {
3420 surface : {
3521 backgroundColor : '#202020' ,
@@ -46,9 +32,10 @@ class App extends Component {
4632 hasError : false ,
4733 } ;
4834
49- Dimensions . addEventListener ( ( dimensionsValue , target ) => {
50- console . log ( dimensionsValue , target ) ;
51- } ) ;
35+ // In case you want to update the App with new dimensions value:
36+ // Dimensions.addEventListener((dimensionsValue, target) => {
37+ // console.log(dimensionsValue, target);
38+ // });
5239 }
5340
5441 static getDerivedStateFromError ( error ) {
@@ -63,9 +50,6 @@ class App extends Component {
6350
6451 render ( ) {
6552 const { hasError} = this . state ;
66- const { currentFocusPath} = this . props ;
67-
68- console . log ( currentFocusPath ) ;
6953
7054 if ( hasError ) {
7155 return null ;
@@ -82,6 +66,6 @@ class App extends Component {
8266 }
8367}
8468
85- const NavigableApp = withNavigation ( App ) ;
69+ const NavigationApp = withNavigation ( App ) ;
8670
87- render ( < NavigableApp /> , document . getElementById ( 'root' ) ) ;
71+ render ( < NavigationApp /> , document . getElementById ( 'root' ) ) ;
0 commit comments