When I run yarn run flow, it goes inside node_modules/expo/… and reads the .flowconfig file they have there, giving me some exponent typing errors which of course I don’t want.
How do I customise this to read my .flowconfig file located in my root folder instead? I don’t think I’m going to mess up with "main": "node_modules/expo/AppEntry.js" as this is the default setup with exponent.
Thanks for the answer, I tried the create-react-native-app, after getting the repo started, this are the steps I followed.
1 - yarn add flow flow-bin
2 - yarn run flow
I think is looking inside the .flowconfig file located on the expo project, not in mine root folder
Result on the terminal:
yarn run v0.21.3
$ "Users/personamac/Documents/Projects/my-app
Spawned flow server (pid=1270)
Logs will go to /private/tmp/flow/zSUserszSpersonamaczSDocumentszSProjectszSmy-app.log
node_modules/expo/src/AV.js:100
100: if ('rate' in status && (status.rate < 0.0 || status.rate > 32.0)) {
^^^^^^^^^^^ undefined. This type cannot be compared to
100: if ('rate' in status && (status.rate < 0.0 || status.rate > 32.0)) {
^^^ number
node_modules/expo/src/AV.js:100
100: if ('rate' in status && (status.rate < 0.0 || status.rate > 32.0)) {
^^^^^^^^^^^ undefined. This type cannot be compared to
100: if ('rate' in status && (status.rate < 0.0 || status.rate > 32.0)) {
^^^^ number
node_modules/expo/src/AV.js:103
103: if ('volume' in status && (status.volume < 0.0 || status.volume > 1.0)) {
^^^^^^^^^^^^^ undefined. This type cannot be compared to
103: if ('volume' in status && (status.volume < 0.0 || status.volume > 1.0)) {
^^^ number
node_modules/expo/src/AV.js:103
103: if ('volume' in status && (status.volume < 0.0 || status.volume > 1.0)) {
^^^^^^^^^^^^^ undefined. This type cannot be compared to
103: if ('volume' in status && (status.volume < 0.0 || status.volume > 1.0)) {
^^^ number
..........
Hi! I think you got it working and those are just some flow issues we need to resolve internally. I’ve pinged @greg about that, who maintains the AV code in our SDK.