React-native-navigation: [v2] 3D Touch Peek/Pop Support

Created on 25 May 2018  ·  5Comments  ·  Source: wix/react-native-navigation

Is this planned for v2 as well?

v2

Most helpful comment

Referencing #3273 here

All 5 comments

Not planned, but I may create a PR with that functionality.

I thought about having a component we can wrap a view with to use as the Preview View.

<Navigation.Element elementId="Preview1">
  <View>...</View>
</Navigation.Element>

Then we can reference it with elementId.

Navigation.push(this.props.componentId, {
  component: {
    name: 'example.PushedScreen',
  },
  options: {
    preview: {
      elementId: 'Preview1',
      actions: [/* ... */],
      height: 250,
      commit: true,
    },
  },
});

Sounds fantastic!

Referencing #3273 here

@birkir Congrats on the merge. Could you describe the APIs you ended up implementing? Will a Peek preview also work with Navigation.showModal and Navigation.showOverlay?

@birkir ❤️

Was this page helpful?
0 / 5 - 0 ratings