Aug 31, 2018 · 1 min read
Nice work! Getting started up with RN project with all that setup to take care of, is confusing.
I have a issue. I do not have .flowconfig file. Even then if I add flow locally as
yarn add --dev flow-bin babel-preset-flowand then do flow init, it creates an empty .flowconfig file with the latest flow version displayed at end of the file as 0.79.1 . Is it fine? and the rules I had to copy from https://github.com/facebook/react-native/blob/master/.flowconfig which is regularly updated with current flow version(now 0.79.1).
This is my react version:
react-native-cli: 2.0.1
react-native: 0.56.0
Also, this worked for me in package.json script:
"scripts": {
// ...
"lint": "eslint '**/*.js'"
}