await Navigation.showModal isn't return the componentId.
const compId =
await Navigation.showModal({
stack: {
children: [{
component: {
id: 'my.screen.id,
name: 'my.screen.name
passProps: {...}
}
}]
}
});
compId is `undefined
await showModal('123', ...);
await dismissModal('123');
showModal('123', ...); // Crash---
@gran33
Can you assign the stack a predefined id?
Navigation.showModal({
stack: {
id: 'MyStack'
children: [{
component: {
id: 'my.screen.id,
name: 'my.screen.name
passProps: {...}
}
}]
}
});
Then you could dismiss the modal using Navigation.dismissModal('MyStack');
Will this be suitable for now?
If I do so, that says that the componentId already exists.
resolved
I'm still seeing this problem. Don't see how it's resolved b/c there's no code associated with the issue.
Still seeing this in "react-native-navigation": "^2.16.0"
Any clue as to why that was closed, the error originates here:
https://github.com/wix/react-native-navigation/blob/master/lib/ios/RNNModalManager.m#L39
and that's not resolved yet.
Fixed in 2.18.0
Most helpful comment
I'm still seeing this problem. Don't see how it's resolved b/c there's no code associated with the issue.