"react-native": "0.55.4"
"react-native-router-flux": "^4.0.0-beta.31"
in my code :
renderRightButton = () => (
DeviceEventEmitter.emit(TYPE.EDIT_ADDRESS_BOOK);
}}
>
)
componentDidMount() {
Actions.refresh({ renderRightButton: this.renderRightButton });
}
using right insteadof renderRightButton
using setTimeout my be help
componentDidMount() {
setTimeout(() => {
Actions.refresh({ renderRightButton: this.renderRightButton });
}, delayTime)
}
the scene key is prev navigation's when redux update data
the code in navigationStore.js Line 930
const { key } = getActiveState(this.state);
I saw quite a few people mentioning the setTimeout fix. I tried it with renderRightButton, didn't work. However, using right does work. Thanks @zouminhuababa, life saver. And I am surprised that I can't find right in any API doc. @aksonov, is that deprecated or something else?
Most helpful comment
using right insteadof renderRightButton