I ran into an issue when trying to use the withNavigation HOC with the withRef option set to true. When using this option the withNavigation HOC sets the _wrappedInstance on this, but it does so on the wrong this. This pull request makes the setWrappedInstance use the correct this so one can use the getWrappedInstance() method properly.
I ran into an issue when trying to use the
withNavigation
HOC with thewithRef
option set totrue
. When using this option thewithNavigation
HOC sets the_wrappedInstance
onthis
, but it does so on the wrongthis
. This pull request makes thesetWrappedInstance
use the correctthis
so one can use thegetWrappedInstance()
method properly.