Skip to content

Commit

Permalink
Upgrade dep (ant-design#822)
Browse files Browse the repository at this point in the history
* refactor: react-native 0.62

* refactor: ios

* refactor: tabs using ViewPager > 3 fixes ant-design#797

* fix: running android

* fix: tests

* fix: tests

* fix: icon fonts

* chore: change node version
  • Loading branch information
BANG88 authored Apr 22, 2020
1 parent 159fbdc commit ff0abf7
Show file tree
Hide file tree
Showing 16,940 changed files with 2,982,244 additions and 43,349 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
74 changes: 74 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

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'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[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
inexact-spread=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.113.0
10 changes: 7 additions & 3 deletions .jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ const transformPackages = [
'react-native-swipeout',
'react-native-camera-roll-picker',
'@bang88/react-native-ultimate-listview',
'react-native-safe-area-view',
'@react-native-community/cameraroll',
'@react-native-community/viewpager'
];

module.exports = {
// ...tsjPreset,
preset: 'react-native',
setupFiles: ['./tests/setup.js'],
preset: '@testing-library/react-native',
setupFiles: ["@testing-library/react-native/jest-preset",],
// setupFilesAfterEnv: [
// '@testing-library/react-native/cleanup-after-each',
// // ... other setup files ...
// ],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testPathIgnorePatterns: ['/node_modules/', '_site', 'site'],
transform: {
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.12.0
11.15.0
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ notifications:
- rjmuqiang@gmail.com

node_js:
- "8"
- "10"
- "11"

env:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
18 changes: 9 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [[
'import',
{libraryName: '@ant-design/react-native', libraryDirectory: 'components'}
]]
{ libraryName: '@ant-design/react-native', libraryDirectory: 'components' },
]],
},
production: {
presets: ['module:metro-react-native-babel-preset'],

plugins: [[
'import',
{libraryName: '@ant-design/react-native', libraryDirectory: 'components'}
]]
{ libraryName: '@ant-design/react-native', libraryDirectory: 'components' },
]],
},
test: {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'import',
{libraryName: '@ant-design/react-native', libraryDirectory: 'components'}
]
]
}
}
{ libraryName: '@ant-design/react-native', libraryDirectory: 'components' },
],
],
},
},
};
96 changes: 30 additions & 66 deletions components/accordion/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,9 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
<View
style={Object {}}
>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
<
onPress={[Function]}
underlayColor="transparent"
>
<View
style={
Expand Down Expand Up @@ -98,12 +91,13 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</Text>
</View>
</View>
</View>
</>
<View
pointerEvents="auto"
style={false}
>
<View
forwardedRef={[Function]}
onLayout={[Function]}
style={Object {}}
>
Expand All @@ -117,16 +111,10 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
}
}
>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
<
activeOpacity={1}
delayLongPress={500}
onLongPress={[Function]}
>
<View
style={
Expand Down Expand Up @@ -187,17 +175,11 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</View>
</View>
</View>
</View>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
</>
<
activeOpacity={1}
delayLongPress={500}
onLongPress={[Function]}
>
<View
style={
Expand Down Expand Up @@ -258,17 +240,11 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</View>
</View>
</View>
</View>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
</>
<
activeOpacity={1}
delayLongPress={500}
onLongPress={[Function]}
>
<View
style={
Expand Down Expand Up @@ -329,7 +305,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</View>
</View>
</View>
</View>
</>
<View
style={
Array [
Expand All @@ -354,16 +330,9 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
<View
style={Object {}}
>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
<
onPress={[Function]}
underlayColor="transparent"
>
<View
style={
Expand Down Expand Up @@ -428,7 +397,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</Text>
</View>
</View>
</View>
</>
<View
pointerEvents="none"
style={
Expand All @@ -439,6 +408,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
}
>
<View
forwardedRef={[Function]}
onLayout={[Function]}
style={Object {}}
>
Expand Down Expand Up @@ -469,16 +439,9 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
<View
style={Object {}}
>
<View
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
<
onPress={[Function]}
underlayColor="transparent"
>
<View
style={
Expand Down Expand Up @@ -543,12 +506,13 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
</Text>
</View>
</View>
</View>
</>
<View
pointerEvents="auto"
style={false}
>
<View
forwardedRef={[Function]}
onLayout={[Function]}
style={Object {}}
>
Expand Down
37 changes: 0 additions & 37 deletions components/accordion/__tests__/index.test.js

This file was deleted.

Loading

0 comments on commit ff0abf7

Please sign in to comment.