From cafeaab21f83fb301250280a7564ce656d076d71 Mon Sep 17 00:00:00 2001 From: Pavel Aksonov Date: Fri, 10 Aug 2018 14:44:50 +0200 Subject: [PATCH] Update API.md Added onStateChange doc --- docs/API.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/API.md b/docs/API.md index 2c782df91..8d67af5be 100644 --- a/docs/API.md +++ b/docs/API.md @@ -21,6 +21,7 @@ | `sceneStyle` | `Style` | | Style applied to all scenes (optional) | | `backAndroidHandler` | `Function` | | Allows custom control of hardwareBackPress in Android (optional). For more info check [BackHandler](https://facebook.github.io/react-native/docs/backhandler.html). | | `uriPrefix` | `string` | | A uri prefix to strip from incoming urls for deep linking. For example, if you wanted to support deep linking from `www.example.com/user/1234/`, then you could pass `example.com` to only match paths against `/user/1234/`. | +| `onStateChange`   | `Function` | | function to be called every time when navigation state is changed. Useful for mobx stores to change observables (set scene to `Actions.currentScene`, etc.) | ## Scene: The basic routing component for this router, all `` components require a `key` prop that must be unique. A parent `` must have a `component` as a `prop` as it will act as a grouping component for its children.