I am trying to make the HOC responsive, but I cannot figure out how to do this. So I have one HOC that works great with reaction navigation. My idea is to show the component that render completes the HOC. I am trying to do this:
render() { return ( <View style={viewStyle}> {CheckLogin(Login)} </View> ); }
this CheckLogin is the HOC, and Login is the component itself. As a result, React is not complaining, but empty. Any idea how to render the HOC invoking the component itself?
source share