Bläddra i källkod

Update top-level-api.md ... more copyediting. (#3002)

Further clarification of some of the top level API stuff.
John Gorenfeld 6 år sedan
förälder
incheckning
4dfb8e397c
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5
    5
      docs/docs/top-level-api.md

+ 5
- 5
docs/docs/top-level-api.md Visa fil

@@ -1,6 +1,6 @@
1 1
 # Top Level API
2 2
 
3
-So as to make the navigation API as consistent and homogenous as possible, we begin with a single, unifying function -- setRoot -- that receives properties for any kind of layout, whether tabs or stacks.
3
+So as to make the navigation API as consistent and homogenous as possible, we begin with a single, unifying function -- setRoot. SetRoot receives properties for any kind of layout, whether tabs or stacks, or a combination of both (as seen in this example.)
4 4
 
5 5
 See [Layout types](docs/layout-types)
6 6
 
@@ -50,7 +50,7 @@ Navigation.setRoot({
50 50
 
51 51
 ## showOverlay(layout = {})
52 52
 
53
-Show component as overlay.
53
+Shows a component as an overlay.
54 54
 
55 55
 ```js
56 56
 Navigation.showOverlay({
@@ -67,7 +67,7 @@ Navigation.showOverlay({
67 67
 
68 68
 ## dismissOverlay(componentId)
69 69
 
70
-Dismiss overlay matching the overlay componentId.
70
+Dismisses an overlay matching the given overlay componentId.
71 71
 
72 72
 ```js
73 73
 Navigation.dismissOverlay(this.props.componentId);
@@ -76,7 +76,7 @@ Navigation.dismissOverlay(this.props.componentId);
76 76
 
77 77
 <!-- ## handleDeepLink(params = {})
78 78
 
79
-Trigger a deep link within the app. See [deep links](https://wix.github.io/react-native-navigation/#/deep-links) for more details about how screens can listen for deep link events.
79
+Triggers a deep link within the app. See [deep links](https://wix.github.io/react-native-navigation/#/deep-links) for more details about how screens can listen for deep link events.
80 80
 
81 81
 ```js
82 82
 Navigation.handleDeepLink({
@@ -97,4 +97,4 @@ Navigation.registerScreen('example.AdvancedScreen', () => AdvancedScreen);
97 97
 
98 98
 In some cases you might need the id of the currently visible screen. This method returns the unique id of the currently visible screen:
99 99
 `const visibleScreenInstanceId = await Navigation.getCurrentlyVisibleScreenId()`
100
-In order to have any use of this method, you'd need to map instanceId to screens your self. -->
100
+In order to have any use of this method, you'd need to map instanceId to screens yourself. -->