Files
iNaturalistReactNative/.flowconfig
Johannes Klein 6e696cb524 Update to react-native 0.77 (#3026)
* Upgrade helper changes JS side

* Upgrade helper Android

* Upgrade helper iOS side

* Update project.pbxproj

* Create react-native-modal+14.0.0-rc.1.patch

* BackHandler.removeEventListener is deprecated

* Update react-native-modal

* Update .flowconfig

* Update package-lock.json

* Update Podfile.lock

* Update Podfile.lock from main

* Replace toBeVisible with toBeOnTheScreen

This is not recommended by react-navigation, because even though toBeOnTheScreen makes sure the components are in the tree it does not mean they are visible to the user. For example, in terms of navigation a previous screen is still i the tree but not visible to the user in the app.
I spent around a day trying to figure out why the isVisible check stopped working, and still have no clear answer.
Testing in the actual app shows that all of those flows are still working as expected, so it is a test-environment-only problem.
My suggestion would be to re-visit this problem after we have updated RN to latest, and testing related libraries to latest versions.
2025-08-01 12:11:13 +02:00

148 lines
7.2 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
.*/node_modules/hermes-estree/dist/generated/predicates.js.flow
.*/node_modules/react-native/Libraries/StyleSheet/StyleSheetTypes.js
.*/node_modules/react-native/Libraries/Types/ReactDevToolsTypes.js
.*/node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js
.*/node_modules/hermes-estree/dist/predicates.js.flow
.*/node_modules/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
.*/node_modules/react-native/Libraries/Text/TextNativeComponent.js
.*/node_modules/react-native/flow/jest.js
.*/node_modules/@react-native/community-cli-plugin/dist/commands/start/middleware.js.flow
.*/node_modules/@react-native/community-cli-plugin/dist/utils/errors.js.flow
.*/node_modules/@react-native/community-cli-plugin/dist/utils/logger.js.flow
.*/node_modules/@react-native/dev-middleware/dist/inspector-proxy/types.js.flow
.*/node_modules/babel-plugin-syntax-hermes-parser/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
.*/node_modules/metro-babel-transformer/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
.*/node_modules/metro-file-map/src/lib/TreeFS.js.flow
.*/node_modules/metro-resolver/src/PackageExportsResolve.js.flow
.*/node_modules/metro-source-map/src/generateFunctionMap.js.flow
.*/node_modules/metro-transform-worker/src/index.js.flow
.*/node_modules/metro/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
.*/node_modules/metro/src/ModuleGraph/worker/collectDependencies.js.flow
.*/node_modules/metro/src/Server.js.flow
.*/node_modules/react-native/Libraries/Animated/components/AnimatedView.js
.*/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js
.*/node_modules/react-native/Libraries/Animated/nodes/AnimatedObject.js
.*/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js
.*/node_modules/react-native/src/private/animated/NativeAnimatedHelper.js
.*/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
.*/node_modules/react-native/Libraries/Animated/NativeAnimatedAllowlist.js
.*/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js
.*/node_modules/react-native/Libraries/Components/Button.js
.*/node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js
.*/node_modules/react-native/Libraries/Components/Pressable/Pressable.js
.*/node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js
.*/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js
.*/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js
.*/node_modules/react-native/Libraries/Components/Switch/Switch.js
.*/node_modules/react-native/Libraries/Components/TextInput/TextInput.flow.js
.*/node_modules/react-native/Libraries/Components/TextInput/TextInput.js
.*/node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js
.*/node_modules/react-native/Libraries/Components/Touchable/Position.js
.*/node_modules/react-native/Libraries/Components/Touchable/TouchableBounce.js
.*/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
.*/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js
.*/node_modules/react-native/Libraries/Components/View/View.js
.*/node_modules/react-native/Libraries/Debugging/DebuggingOverlay.js
.*/node_modules/react-native/Libraries/Image/ImageTypes.flow.js
.*/node_modules/react-native/Libraries/Interaction/InteractionManager.js
.*/node_modules/react-native/Libraries/Lists/SectionList.js
.*/node_modules/react-native/Libraries/Lists/SectionListModern.js
.*/node_modules/react-native/Libraries/ReactNative/AppContainer.js
.*/node_modules/react-native/Libraries/ReactNative/getCachedComponentWithDebugName.js
.*/node_modules/react-native/Libraries/ReactNative/renderApplication.js
.*/node_modules/react-native/Libraries/Text/Text.js
.*/node_modules/react-native/node_modules/@react-native/virtualized-lists/Lists/VirtualizedSectionList.js
.*/node_modules/react-native/src/private/animated/useAnimatedPropsMemo.js
.*/node_modules/react-native/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js
.*/node_modules/react-native/src/private/debugging/ReactDevToolsSettingsManager.js.flow
.*/node_modules/react-native/src/private/featureflags/ReactNativeFeatureFlagsBase.js
.*/node_modules/react-native/src/private/webapis/intersectionobserver/IntersectionObserver.js
.*/node_modules/react-native/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
[include]
[libs]
node_modules/react-native/interface.js
[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