diff --git a/.eslintrc.js b/.eslintrc.js index 85db16a4..42245305 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,7 +6,7 @@ module.exports = { rules: { 'react-native/no-inline-styles': 0, semi: [1, 'never'], - '@typescript-eslint/no-unused-vars': 1, + '@typescript-eslint/no-unused-vars': [1, { args: 'none' }], }, env: { browser: true, diff --git a/components/picker/__tests__/__snapshots__/index.test.js.snap b/components/picker/__tests__/__snapshots__/index.test.js.snap index 3b1fadb4..6f0218b8 100644 --- a/components/picker/__tests__/__snapshots__/index.test.js.snap +++ b/components/picker/__tests__/__snapshots__/index.test.js.snap @@ -246,6 +246,7 @@ Array [ }, ] } + numberOfLines={1} onChange={[Function]} selectedIndex={0} style={ @@ -276,6 +277,7 @@ Array [ }, ] } + numberOfLines={1} onChange={[Function]} selectedIndex={0} style={ @@ -312,6 +314,7 @@ Array [ }, ] } + numberOfLines={1} onChange={[Function]} selectedIndex={0} style={ diff --git a/jestSetup.js b/jestSetup.js index 0db1ae9f..57dcb250 100644 --- a/jestSetup.js +++ b/jestSetup.js @@ -1,3 +1,9 @@ -import 'react-native-gesture-handler/jestSetup'; +import 'react-native-gesture-handler/jestSetup' -jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); \ No newline at end of file +jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper') + +jest.mock('react-native', () => { + const RN = jest.requireActual('react-native') + RN.NativeModules.RNCCameraRollPermissionModule = {} + return RN +})