Skip to content

Commit 17a5ff6

Browse files
chore: update dependencies and remove Yarn configuration files
1 parent 988d826 commit 17a5ff6

9 files changed

Lines changed: 4267 additions & 18580 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ lib/
8080
# React Native Codegen
8181
ios/generated
8282
android/generated
83+
84+
.cursor

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 0 additions & 541 deletions
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 0 additions & 874 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

bun.lock

Lines changed: 4226 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/app/index.tsx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
import { useRouter } from 'expo-router';
2-
import { PressableScale } from 'pressto';
3-
import { StyleSheet, View } from 'react-native';
2+
import { createAnimatedPressable } from 'pressto';
3+
import { StyleSheet, Text, View } from 'react-native';
4+
import { interpolate } from 'react-native-reanimated';
5+
6+
const PressableHighlight = createAnimatedPressable((progress) => {
7+
'worklet';
8+
const opacity = interpolate(progress.value, [0, 1], [0, 0.1]).toFixed(2);
9+
const scale = interpolate(progress.value, [0, 1], [1, 0.95]);
10+
11+
return {
12+
backgroundColor: `rgba(255,255,255,${opacity})`,
13+
transform: [{ scale }],
14+
};
15+
});
416

517
export default function Page() {
618
const router = useRouter();
@@ -11,7 +23,9 @@ export default function Page() {
1123

1224
return (
1325
<View style={styles.container}>
14-
<PressableScale onPress={handlePress} style={styles.button} />
26+
<PressableHighlight onPress={handlePress} style={styles.button}>
27+
<Text style={styles.buttonText}>Press me</Text>
28+
</PressableHighlight>
1529
</View>
1630
);
1731
}
@@ -21,11 +35,19 @@ const styles = StyleSheet.create({
2135
flex: 1,
2236
justifyContent: 'center',
2337
alignItems: 'center',
38+
backgroundColor: '#000000',
2439
},
2540
button: {
2641
backgroundColor: 'black',
2742
height: 100,
2843
aspectRatio: 1,
2944
borderRadius: 50,
45+
justifyContent: 'center',
46+
alignItems: 'center',
47+
},
48+
buttonText: {
49+
color: 'white',
50+
fontSize: 20,
51+
fontWeight: 'bold',
3052
},
3153
});

example/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"@expo/metro-runtime": "~4.0.0",
13-
"expo": "~52.0.20",
14-
"expo-constants": "~17.0.8",
15-
"expo-linking": "~7.0.5",
16-
"expo-router": "~4.0.20",
17-
"expo-status-bar": "~2.0.1",
18-
"react": "18.3.1",
19-
"react-dom": "18.3.1",
20-
"react-native": "0.76.5",
21-
"react-native-gesture-handler": "2.20.2",
22-
"react-native-reanimated": "~3.16.1",
23-
"react-native-safe-area-context": "4.12.0",
24-
"react-native-screens": "~4.4.0",
25-
"react-native-web": "~0.19.13"
12+
"@expo/metro-runtime": "~6.1.2",
13+
"expo": "~54.0.7",
14+
"expo-constants": "~18.0.9",
15+
"expo-linking": "~8.0.8",
16+
"expo-router": "~6.0.7",
17+
"expo-status-bar": "~3.0.8",
18+
"react": "19.1.0",
19+
"react-dom": "19.1.0",
20+
"react-native": "0.81.4",
21+
"react-native-gesture-handler": "~2.28.0",
22+
"react-native-reanimated": "~4.1.0",
23+
"react-native-safe-area-context": "~5.6.0",
24+
"react-native-screens": "~4.16.0",
25+
"react-native-web": "^0.21.0"
2626
},
2727
"devDependencies": {
2828
"@babel/core": "^7.20.0",

0 commit comments

Comments
 (0)