Daniel Zlotin 8 年 前
コミット
134e1bc092
共有2 個のファイルを変更した4 個の追加3 個の削除を含む
  1. 2
    1
      playground/e2e/app.test.js
  2. 2
    2
      playground/src/containers/SimpleScreen.js

+ 2
- 1
playground/e2e/app.test.js ファイルの表示

46
 });
46
 });
47
 
47
 
48
 describe('reload app', () => {
48
 describe('reload app', () => {
49
-  before(function (done) {
49
+  before((done) => {
50
     simulator.reloadReactNativeApp(done);
50
     simulator.reloadReactNativeApp(done);
51
   });
51
   });
52
+
52
   it('shows welcome screen', () => {
53
   it('shows welcome screen', () => {
53
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
54
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
54
   });
55
   });

+ 2
- 2
playground/src/containers/SimpleScreen.js ファイルの表示

34
   onClickPop() {
34
   onClickPop() {
35
     Navigation.on(this.props.id).pop();
35
     Navigation.on(this.props.id).pop();
36
   }
36
   }
37
-  
37
+
38
   onClickPush() {
38
   onClickPush() {
39
     Navigation.on(this.props.id).push({
39
     Navigation.on(this.props.id).push({
40
       name: 'navigation.playground.SimpleScreen',
40
       name: 'navigation.playground.SimpleScreen',
41
       passProps: {
41
       passProps: {
42
-        stackPosition: this.props.stackPosition + 1,
42
+        stackPosition: this.props.stackPosition + 1
43
       }
43
       }
44
     });
44
     });
45
   }
45
   }