mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
* Refactor to use watchPosition
* Update useWatchPosition with permissions/retry
* Replace useUserLocation with useWatchPosition and fix tests; return userLocation from watch position hook
* Only update observation keys when there's an observation
* Improve TypeScript definitions
* Revert TypeScript commit
* Revert "Only update observation keys when there's an observation"
This reverts commit a4cd17a513.
* Code cleanup: make useWatchPosition more modular
* Code cleanup; location permission in ObsEdit instead of subcomponent
* Use correct accuracy in Camera photos
* Camera fixes
* Fixes to watching position in ObsEdit
* Fix useWatchPosition tests
* Fix tests
* Make sure state updates when renavigating to OsEdit; test fixes
89 lines
2.8 KiB
Plaintext
89 lines
2.8 KiB
Plaintext
[ignore]
|
|
; We fork some components by platform
|
|
.*/*[.]android.js
|
|
|
|
; Ignore "BUCK" generated dirs
|
|
<PROJECT_ROOT>/\.buckd/
|
|
|
|
; Ignore polyfills
|
|
node_modules/react-native/Libraries/polyfills/.*
|
|
|
|
; Flow doesn't support platforms
|
|
.*/Libraries/Utilities/LoadingView.js
|
|
|
|
; This is an intentionally malflormed package
|
|
.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
|
|
|
|
; Ignore these files
|
|
.*/node_modules/react-native/sdks/hermes/external/flowtest/test/flow/comment_interning/program_comment_directive.js
|
|
.*/node_modules/react-native/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts
|
|
.*/node_modules/react-native/Libraries/Network/RCTNetworking.js.flow
|
|
.*/node_modules/react-native/Libraries/NativeComponent/BaseViewConfig.js.flow
|
|
.*/node_modules/react-native/Libraries/DevToolsSettings/DevToolsSettingsManager.js.flow
|
|
.*/node_modules/metro/node_modules/hermes-estree/dist/generated/predicates.js.flow
|
|
.*/node_modules/metro-babel-transformer/node_modules/hermes-estree/dist/generated/predicates.js.flow
|
|
.*/node_modules/@react-native/dev-middleware/dist/utils/DefaultBrowserLauncher.js.flow
|
|
.*/node_modules/@react-native/community-cli-plugin/dist/commands/start/index.js.flow
|
|
.*/node_modules/@react-native/community-cli-plugin/dist/commands/ram-bundle/index.js.flow
|
|
.*/node_modules/@react-native/community-cli-plugin/dist/commands/bundle/index.js.flow
|
|
.*/node_modules/@react-native/community-cli-plugin/dist/commands/bundle/buildBundle.js.flow
|
|
.*/node_modules/metro/src/lib/JsonReporter.js.flow
|
|
|
|
[untyped]
|
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
|
|
[include]
|
|
|
|
[libs]
|
|
node_modules/react-native/interface.js
|
|
node_modules/react-native/flow/
|
|
|
|
[options]
|
|
emoji=true
|
|
|
|
exact_by_default=true
|
|
|
|
format.bracket_spacing=false
|
|
|
|
module.file_ext=.js
|
|
module.file_ext=.json
|
|
module.file_ext=.ios.js
|
|
module.file_ext=.ts
|
|
module.file_ext=.tsx
|
|
|
|
munge_underscores=true
|
|
|
|
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
|
|
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
|
|
|
|
; https://github.com/facebook/flow/issues/4103#issuecomment-565613909
|
|
; this is used to remove flow errors related to babel-plugin-module-resolver
|
|
module.system.node.allow_root_relative=true
|
|
module.system.node.root_relative_dirname=./src
|
|
|
|
suppress_type=$FlowIssue
|
|
suppress_type=$FlowFixMe
|
|
suppress_type=$FlowFixMeProps
|
|
suppress_type=$FlowFixMeState
|
|
|
|
[lints]
|
|
sketchy-null-number=warn
|
|
sketchy-null-mixed=warn
|
|
sketchy-number=warn
|
|
untyped-type-import=warn
|
|
nonstrict-import=warn
|
|
deprecated-type=warn
|
|
unsafe-getters-setters=warn
|
|
unnecessary-invariant=warn
|
|
|
|
[strict]
|
|
deprecated-type
|
|
nonstrict-import
|
|
sketchy-null
|
|
unclear-type
|
|
unsafe-getters-setters
|
|
untyped-import
|
|
untyped-type-import
|
|
|
|
[version]
|
|
^0.182.0 |