Skip to content

Commit d4e7ae7

Browse files
committed
skeleton fixes
1 parent 25c2a8b commit d4e7ae7

File tree

5 files changed

+3584
-875
lines changed

5 files changed

+3584
-875
lines changed

examples/with-expo/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// export { default } from './src/Drip.Presence'
22
// export { default } from './src/Moti.ExitBeforeEnter'
33
// export { default } from './src/Moti.Loop'
4-
// export { default } from './src/Moti.Skeleton'
4+
export { default } from './src/Moti.Skeleton'
55
// export { default } from './src/Moti.Gallery'
66
// export { default } from './src/Moti.Sequence'
7-
export { default } from './src/Moti.Factory'
7+
// export { default } from './src/Moti.Factory'
88
// export { default } from './src/Moti.KeyPresence'
99
// export { default } from './src/Moti.Transform'
1010
// export { default } from './src/Moti.Pressable'

examples/with-expo/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
"@motify/interactions": "^0.16.1",
1515
"@motify/skeleton": "^0.16.1",
1616
"core-js": "^3",
17-
"expo": "^44.0.0-beta.2",
18-
"expo-splash-screen": "~0.14.0",
19-
"expo-status-bar": "~1.2.0",
17+
"expo": "^49.0.0",
18+
"expo-splash-screen": "~0.20.5",
19+
"expo-status-bar": "~1.6.0",
2020
"lodash.set": "^4.3.2",
2121
"moti": "^0.16.1",
22-
"react": "17.0.1",
23-
"react-dom": "17.0.1",
24-
"react-native": "0.64.3",
25-
"react-native-gesture-handler": "~2.1.0",
26-
"react-native-reanimated": "3.5.4",
27-
"react-native-svg": "13.4.0",
22+
"react": "18.2.0",
23+
"react-dom": "18.2.0",
24+
"react-native": "0.72.5",
25+
"react-native-gesture-handler": "~2.12.0",
26+
"react-native-reanimated": "~3.3.0",
27+
"react-native-svg": "13.9.0",
2828
"react-native-unimodules": "~0.15.0",
29-
"react-native-web": "0.17.1"
29+
"react-native-web": "~0.19.6"
3030
},
3131
"devDependencies": {
32-
"@babel/core": "~7.12.10",
32+
"@babel/core": "^7.20.0",
3333
"@babel/runtime": "^7.9.6",
3434
"@types/lodash.set": "^4.3.6",
3535
"babel-loader": "^8.2.2",
3636
"babel-plugin-module-resolver": "^4.0.0",
37-
"babel-preset-expo": "9.0.1",
37+
"babel-preset-expo": "^9.5.0",
3838
"esbuild": "^0.13.13",
3939
"metro-minify-esbuild": "^0.1.0"
4040
}

packages/moti/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "moti",
33
"private": false,
4-
"version": "0.26.0",
4+
"version": "0.26.1",
55
"keywords": [
66
"react-native",
77
"ios",

packages/moti/src/skeleton/skeleton-new.tsx

+13-5
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const AnimatedGradient = React.memo(
104104
function AnimatedGradient({
105105
colors,
106106
backgroundSize,
107-
transition = {},
107+
transition,
108108
show,
109109
measuredWidthSv,
110110
Gradient,
@@ -137,10 +137,18 @@ const AnimatedGradient = React.memo(
137137
}
138138
}, [measuredWidthSv, show])}
139139
transition={{
140-
loop: show,
141-
delay: 200,
142-
type: 'timing',
143-
duration: 3000,
140+
translateX: {
141+
type: 'timing',
142+
143+
loop: show,
144+
delay: 200,
145+
duration: 3000,
146+
},
147+
opacity: {
148+
type: 'timing',
149+
delay: 0,
150+
duration: 200,
151+
},
144152
...(transition as any),
145153
}}
146154
>

0 commit comments

Comments
 (0)