You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Timeout in 150ms if `getInitialState` doesn't resolve
59
+
// Workaround for https://github.com/facebook/react-native/issues/25675
60
+
setTimeout(resolve, 150)
61
+
)
62
+
)
63
+
.catch(e=> {
64
+
console.error(e);
65
+
})
57
66
.then(state=> {
58
67
if (state !==undefined) {
59
68
setInitialState(state);
@@ -75,6 +84,8 @@ function App() {
75
84
}
76
85
```
77
86
87
+
> Note: The `getInitialState` function uses React Native's `Linking.getInitialUrl()` under the hood. Currently there seems to be bug ([facebook/react-native#25675](https://github.com/facebook/react-native/issues/25675)) which results in it never resolving on Android.
88
+
78
89
Often, directly translating path segments to route names may not be the expected behavior. For example, you might want to parse the path `/feed/latest` to something like:
0 commit comments