File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11/** @format */
22
3+ import React from 'react' ;
34import renderer from 'react-test-renderer' ;
45
56import App from '..' ;
67
78test ( 'should render properly' , ( ) => {
8- const tree = renderer . create ( App ) . toJSON ( ) ;
9+ const tree = renderer . create ( < App /> ) . toJSON ( ) ;
910 expect ( tree ) . toMatchSnapshot ( ) ;
1011} ) ;
Original file line number Diff line number Diff line change 1- //@flow
2-
31/**
4- * React Native Basic App
5- * https://github.com/facebook/react-native
6- *
72 * @format
3+ * @flow
84 */
95
106import React from 'react' ;
@@ -42,7 +38,7 @@ const instructions = Platform.select({
4238 android : 'Double tap R on your keyboard to reload,\nShake or press menu button for dev menu' ,
4339} ) ;
4440
45- const App = (
41+ const App = ( ) => (
4642 < View style = { styles . container } >
4743 < Text style = { styles . welcome } > Welcome to React Native!</ Text >
4844 < Text style = { styles . instructions } > Your App is ready and you already have:</ Text >
You can’t perform that action at this time.
0 commit comments