Changeset View
Changeset View
Standalone View
Standalone View
native/components/swipeable.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { Animated, View } from 'react-native'; | import { Animated, View } from 'react-native'; | ||||
// eslint-disable-next-line import/extensions | |||||
ashoat: This mapped to a custom `package.json` nested inside a package. It resolves to a `.tsx` file… | |||||
import SwipeableComponent from 'react-native-gesture-handler/Swipeable'; | import SwipeableComponent from 'react-native-gesture-handler/Swipeable'; | ||||
import { useSelector } from 'react-redux'; | import { useSelector } from 'react-redux'; | ||||
import Button from './button.react.js'; | import Button from './button.react.js'; | ||||
import { type Colors, useColors, useStyles } from '../themes/colors.js'; | import { type Colors, useColors, useStyles } from '../themes/colors.js'; | ||||
type BaseProps = { | type BaseProps = { | ||||
+buttonWidth: number, | +buttonWidth: number, | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |
This mapped to a custom package.json nested inside a package. It resolves to a .tsx file, but when I tried to import that directly, Metro became unhappy. I opted to just ignore the ESLint rule, as native is not impacted by either the Node.js 19 or Webpack 5 migrations