Intergrate React hook
complete
Kurisu
React-native has already released the version 0.59-rc with new React Hook feature. It will be great if we can enhance the library with Hook
Hook will be our future !
satya164
complete
There is react-navigation-hooks for v4 and v5 includes built-in hooks
Sébastien Lorber
Kurisu
Sébastien Lorber: Very appreciate . However, do we still need a class component for defining static title, icon, etc ? It would be great if you can suggest me a way for using function only instead of class
Sébastien Lorber
Kurisu: Don't understand at all what you are talking about. Hooks can only work with function components and are unrelated to title or icon.
Kurisu
Sébastien Lorber: Sorry for my confusing question. In the following example, I still see the class component was used. My question is that how can we replace it with a function component which still keep the navigationOptions ?
Sébastien Lorber
Kurisu: const MySFC = () => {...}; MySFC.navigationOptions = {};