Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit 730f278

Browse files
committed
chore: upgrade packages
1 parent ad0c362 commit 730f278

14 files changed

+5780
-5283
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
# VSCode
99
.vscode/
10+
.history/
11+
1012
jsconfig.json
1113

1214
# Xcode

.release-it.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"git": {
3-
"commitMessage": "chore: release %s",
4-
"tagName": "v%s"
3+
"commitMessage": "chore: release ${version}",
4+
"tagName": "v${version}"
55
},
66
"npm": {
77
"publish": true

example/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class ExampleList extends React.Component<any, State> {
7979
require('../assets/album-art-6.jpg'),
8080
require('../assets/album-art-7.jpg'),
8181
require('../assets/album-art-8.jpg'),
82-
].map(image => Asset.fromModule(image).downloadAsync());
82+
].map((image) => Asset.fromModule(image).downloadAsync());
8383
}
8484

8585
private persistNavigationState = async (currentIndex: number) => {

example/src/CoverflowExample.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ const Scene = ({ route, position, layout, index, length }: Props) => {
3737
const { width } = layout;
3838

3939
const inputRange = Array.from({ length }, (_, i) => i);
40-
const translateOutputRange = inputRange.map(i => {
40+
const translateOutputRange = inputRange.map((i) => {
4141
return (width / 2) * (index - i) * -1;
4242
});
43-
const scaleOutputRange = inputRange.map(i => {
43+
const scaleOutputRange = inputRange.map((i) => {
4444
if (index === i) {
4545
return 1;
4646
} else {
4747
return 0.7;
4848
}
4949
});
50-
const opacityOutputRange = inputRange.map(i => {
50+
const opacityOutputRange = inputRange.map((i) => {
5151
if (index === i) {
5252
return 1;
5353
} else {
@@ -89,7 +89,7 @@ const Scene = ({ route, position, layout, index, length }: Props) => {
8989

9090
export default function CoverflowExample() {
9191
const [index, onIndexChange] = React.useState(2);
92-
const [routes] = React.useState(Object.keys(ALBUMS).map(key => ({ key })));
92+
const [routes] = React.useState(Object.keys(ALBUMS).map((key) => ({ key })));
9393

9494
return (
9595
<TabView

example/src/CustomIndicatorExample.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,28 @@ export default class CustomIndicatorExample extends React.Component<{}, State> {
7777

7878
const scale = Animated.interpolate(position, {
7979
inputRange,
80-
outputRange: inputRange.map(x => (Math.trunc(x) === x ? 2 : 0.1)),
80+
outputRange: inputRange.map((x) => (Math.trunc(x) === x ? 2 : 0.1)),
8181
});
8282

8383
const opacity = Animated.interpolate(position, {
8484
inputRange,
85-
outputRange: inputRange.map(x => {
85+
outputRange: inputRange.map((x) => {
8686
const d = x - Math.trunc(x);
8787
return d === 0.49 || d === 0.51 ? 0 : 1;
8888
}),
8989
});
9090

9191
const translateX = Animated.interpolate(position, {
9292
inputRange: inputRange,
93-
outputRange: inputRange.map(x => {
93+
outputRange: inputRange.map((x) => {
9494
const i = Math.round(x);
9595
return i * getTabWidth(i) * (I18nManager.isRTL ? -1 : 1);
9696
}),
9797
});
9898

9999
const backgroundColor = Animated.interpolate(position, {
100100
inputRange,
101-
outputRange: inputRange.map(x =>
101+
outputRange: inputRange.map((x) =>
102102
Animated.color(...navigationState.routes[Math.round(x)].color)
103103
),
104104
});
@@ -165,7 +165,7 @@ export default class CustomIndicatorExample extends React.Component<{}, State> {
165165
tabBarPosition="bottom"
166166
renderPager={
167167
Platform.OS === 'ios'
168-
? props => <ScrollPager {...props} />
168+
? (props) => <ScrollPager {...props} />
169169
: undefined
170170
}
171171
onIndexChange={this.handleIndexChange}

example/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
77
const node_modules = path.resolve(__dirname, 'node_modules');
88
const packageName = require('../package.json').name;
99

10-
module.exports = async function(env, argv) {
10+
module.exports = async function (env, argv) {
1111
const config = await createExpoWebpackConfigAsync(env, argv);
1212

1313
config.module.rules.push({
@@ -18,7 +18,7 @@ module.exports = async function(env, argv) {
1818
});
1919

2020
config.resolve.plugins = config.resolve.plugins.filter(
21-
p => !(p instanceof ModuleScopePlugin)
21+
(p) => !(p instanceof ModuleScopePlugin)
2222
);
2323

2424
Object.assign(config.resolve.alias, {

0 commit comments

Comments
 (0)