Is this planned for v2 as well?
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 ❤️
Most helpful comment
Referencing #3273 here