Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Arrow function logic in React Native CLI project

$
0
0

I created a new React Native CLI project and was thinking to convert the App component to a class based component to fix a hot reload issue when using react-navigation.

But I don't understand the logic with these two arrow functions, and how to convert it:

const App: () => React$Node = () => {  return <NavigationWrapper />;};

Update: the arrow question was answered, though it didn´t help for the hot reload issue (a glitch in my logic there). See this link for a solution for that.


Viewing all articles
Browse latest Browse all 6287

Trending Articles