@@ -6,29 +6,27 @@ import {
66 Dimensions ,
77 StyleSheet ,
88 registerComponent ,
9- Navigation ,
9+ withNavigation
1010} from '../../react-ape/reactApeEntry' ;
1111
12- import Spinner from './Spinner' ;
12+ // import Spinner from './Spinner';
1313import Sidebar from './Sidebar' ;
1414import Grid from './Grid' ;
1515import Clock from './Clock' ;
1616import Slideshow from './Slideshow' ;
1717
1818const { width, height} = Dimensions . get ( 'window' ) ;
1919
20- const { withNavigation} = Navigation ;
21-
2220// 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- } ;
21+ /*
22+ <custom.Spinner
23+ degrees={degrees}
24+ style={{ top: height / 4 + 8, left: width / 2 - 60, color: 'white' } }
25+ />
26+ */
27+ // const custom = {
28+ // Spinner: registerComponent('Spinner', Spinner),
29+ // };
3230
3331const styles = StyleSheet . create ( {
3432 surface : {
@@ -46,9 +44,10 @@ class App extends Component {
4644 hasError : false ,
4745 } ;
4846
49- Dimensions . addEventListener ( ( dimensionsValue , target ) => {
50- console . log ( dimensionsValue , target ) ;
51- } ) ;
47+ // In case you want to update the App with new dimensions value:
48+ // Dimensions.addEventListener((dimensionsValue, target) => {
49+ // console.log(dimensionsValue, target);
50+ // });
5251 }
5352
5453 static getDerivedStateFromError ( error ) {
@@ -63,9 +62,6 @@ class App extends Component {
6362
6463 render ( ) {
6564 const { hasError} = this . state ;
66- const { currentFocusPath} = this . props ;
67-
68- console . log ( currentFocusPath ) ;
6965
7066 if ( hasError ) {
7167 return null ;
@@ -82,6 +78,6 @@ class App extends Component {
8278 }
8379}
8480
85- const NavigableApp = withNavigation ( App ) ;
81+ const NavigationApp = withNavigation ( App ) ;
8682
87- render ( < NavigableApp /> , document . getElementById ( 'root' ) ) ;
83+ render ( < NavigationApp /> , document . getElementById ( 'root' ) ) ;
0 commit comments