mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 09:21:09 +08:00
docs: add info about how initial state is handled
This commit is contained in:
@@ -49,7 +49,7 @@ const StackRouter = {
|
||||
...state.routes,
|
||||
{
|
||||
name: action.payload.name,
|
||||
key: `${name}-${shortid()}`,
|
||||
key: `${action.payload.name}-${shortid()}`,
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -94,7 +94,7 @@ export default function StackNavigator(props: Props) {
|
||||
border: '1px solid black',
|
||||
}}
|
||||
>
|
||||
{descriptors[route.name].render()}
|
||||
{descriptors[route.key].render()}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user