fix: link proper descriptor for StackView

This commit is contained in:
Michal Osadnik
2019-08-24 02:12:14 +01:00
parent d26b77f9c9
commit 469ec31cc5

View File

@@ -328,8 +328,8 @@ export default class Stack extends React.Component<Props, State> {
{routes.map((route, index, self) => {
const focused = focusedRoute.key === route.key;
const current = progress[route.key];
const descriptor = descriptors[route.key];
const scene = scenes[index];
const descriptor = scene.descriptor;
const next = self[index + 1]
? progress[self[index + 1].key]
: ANIMATED_ONE;