Files
iNaturalistReactNative/.flowconfig
Johannes Klein b4516b7b25 Update react native to v0.78.x (#3043)
* Update package.json

* Update package.json

* Updates for native files with upgrade-helpers

* Update .flowconfig

* Update package-lock.json

* Update Podfile.lock

* Add react-dom types

* Update package-lock.json

* Wrong install

* Use types-react-codemod

* Update TaxonSearch.tsx

* Remove react-native-accessibility-engine dependency

This is currently not maintained and not compatible with RN 0.78

* Comment out accessibility tests

* Disable broken snapshot test

* Move broken test

* Move broken test

* Move broken test

* Remove duplicate file

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken test

* Remove duplicate file

* Move broken tests
2025-08-09 13:47:46 +02:00

151 lines
7.4 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
.*/node_modules/react-native/Libraries/Components/LayoutConformance/LayoutConformance.js
.*/node_modules/react-native/src/private/specs/modules/NativeFantom.js
.*/node_modules/react-native/src/private/webapis/dom/nodes/ReactNativeElement.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