-
点击a
: 我可以看到Current Path: a
I/ReactNativeJS( 2045): onPress(a)
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action:
I/ReactNativeJS( 2045): { type: 'Navigation/NAVIGATE',
I/ReactNativeJS( 2045): routeName: 'FileExplorer',
I/ReactNativeJS( 2045): params: { parent: 'a' },
I/ReactNativeJS( 2045): action: undefined },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 1,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 0,
I/ReactNativeJS( 2045): routes: [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' } ] } }
-
点击b
: 我可以看到Current Path: b
I/ReactNativeJS( 2045): onPress(b)
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action:
I/ReactNativeJS( 2045): { type: 'Navigation/NAVIGATE',
I/ReactNativeJS( 2045): routeName: 'FileExplorer',
I/ReactNativeJS( 2045): params: { parent: 'b' },
I/ReactNativeJS( 2045): action: undefined },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 2,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 1,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] } }
-
点击c
: 我可以看到Current Path: c
I/ReactNativeJS( 2045): onPress(c)
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action:
I/ReactNativeJS( 2045): { type: 'Navigation/NAVIGATE',
I/ReactNativeJS( 2045): routeName: 'FileExplorer',
I/ReactNativeJS( 2045): params: { parent: 'c' },
I/ReactNativeJS( 2045): action: undefined },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 3,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'c' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-3',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 2,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] } }
-
回去。我可以看到Current Path: b
I/ReactNativeJS( 2045): goBack()
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action: { type: 'Navigation/BACK', key: null },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 2,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 3,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'c' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-3',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] } }
-
回去。我可以看到Current Path: a
I/ReactNativeJS( 2045): goBack()
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action: { type: 'Navigation/BACK', key: null },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 1,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 2,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' },
I/ReactNativeJS( 2045): { params: { parent: 'b' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-2',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] } }
-
回去。我可以看到Root path
I/ReactNativeJS( 2045): goBack()
I/ReactNativeJS( 2045): 'Navigation Dispatch: ', { action: { type: 'Navigation/BACK', key: null },
I/ReactNativeJS( 2045): newState:
I/ReactNativeJS( 2045): { index: 0,
I/ReactNativeJS( 2045): routes: [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' } ] },
I/ReactNativeJS( 2045): lastState:
I/ReactNativeJS( 2045): { index: 1,
I/ReactNativeJS( 2045): routes:
I/ReactNativeJS( 2045): [ { routeName: 'FileExplorer', key: 'Init-id-1497998297948-0' },
I/ReactNativeJS( 2045): { params: { parent: 'a' },
I/ReactNativeJS( 2045): key: 'id-1497998297948-1',
I/ReactNativeJS( 2045): routeName: 'FileExplorer' } ] } }
-
回去。没有任何预期的结果:-)
I/ReactNativeJS( 2045): goBack()