Adding reset key documentation (#1297)

This commit is contained in:
Scott Brady
2017-07-10 21:46:29 -04:00
committed by Matt Hamil
parent 9037dd3c4e
commit cc22138b19

View File

@@ -41,6 +41,7 @@ The `Reset` action wipes the whole navigation state and replaces it with the res
- `index` - *number* - required - Index of the active route on `routes` array in navigation `state`.
- `actions` - *array* - required - Array of Navigation Actions that will replace the navigation state.
- `key` - *string or null* - optional - If set, the navigator with the given key will reset. If null, the root navigator will reset.
```js
import { NavigationActions } from 'react-navigation'