Skip to content

Commit efe4169

Browse files
authored
chore(🔥): remove slider dependency (#3510)
1 parent fed92a3 commit efe4169

File tree

4 files changed

+1
-74
lines changed

4 files changed

+1
-74
lines changed

‎apps/example/ios/Podfile.lock‎

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,49 +1327,6 @@ PODS:
13271327
- ReactCommon/turbomodule/bridging
13281328
- ReactCommon/turbomodule/core
13291329
- Yoga
1330-
- react-native-slider (4.5.7):
1331-
- DoubleConversion
1332-
- glog
1333-
- hermes-engine
1334-
- RCT-Folly (= 2024.11.18.00)
1335-
- RCTRequired
1336-
- RCTTypeSafety
1337-
- React-Core
1338-
- React-debug
1339-
- React-Fabric
1340-
- React-featureflags
1341-
- React-graphics
1342-
- React-ImageManager
1343-
- react-native-slider/common (= 4.5.7)
1344-
- React-NativeModulesApple
1345-
- React-RCTFabric
1346-
- React-rendererdebug
1347-
- React-utils
1348-
- ReactCodegen
1349-
- ReactCommon/turbomodule/bridging
1350-
- ReactCommon/turbomodule/core
1351-
- Yoga
1352-
- react-native-slider/common (4.5.7):
1353-
- DoubleConversion
1354-
- glog
1355-
- hermes-engine
1356-
- RCT-Folly (= 2024.11.18.00)
1357-
- RCTRequired
1358-
- RCTTypeSafety
1359-
- React-Core
1360-
- React-debug
1361-
- React-Fabric
1362-
- React-featureflags
1363-
- React-graphics
1364-
- React-ImageManager
1365-
- React-NativeModulesApple
1366-
- React-RCTFabric
1367-
- React-rendererdebug
1368-
- React-utils
1369-
- ReactCodegen
1370-
- ReactCommon/turbomodule/bridging
1371-
- ReactCommon/turbomodule/core
1372-
- Yoga
13731330
- React-NativeModulesApple (0.78.0):
13741331
- glog
13751332
- hermes-engine
@@ -1957,7 +1914,6 @@ DEPENDENCIES:
19571914
- React-microtasksnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
19581915
- react-native-safe-area-context (from `../../../node_modules/react-native-safe-area-context`)
19591916
- "react-native-skia (from `../../../node_modules/@shopify/react-native-skia`)"
1960-
- "react-native-slider (from `../../../node_modules/@react-native-community/slider`)"
19611917
- React-NativeModulesApple (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
19621918
- React-perflogger (from `../../../node_modules/react-native/ReactCommon/reactperflogger`)
19631919
- React-performancetimeline (from `../../../node_modules/react-native/ReactCommon/react/performance/timeline`)
@@ -2079,8 +2035,6 @@ EXTERNAL SOURCES:
20792035
:path: "../../../node_modules/react-native-safe-area-context"
20802036
react-native-skia:
20812037
:path: "../../../node_modules/@shopify/react-native-skia"
2082-
react-native-slider:
2083-
:path: "../../../node_modules/@react-native-community/slider"
20842038
React-NativeModulesApple:
20852039
:path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
20862040
React-perflogger:
@@ -2194,7 +2148,6 @@ SPEC CHECKSUMS:
21942148
React-microtasksnativemodule: 843f352b32aacbe13a9c750190d34df44c3e6c2c
21952149
react-native-safe-area-context: 0f14bce545abcdfbff79ce2e3c78c109f0be283e
21962150
react-native-skia: 83ea407f6494e4a24a9c971cbfccedca4fe00e65
2197-
react-native-slider: 310d3f89edd6ca8344a974bfe83a29a3fbb60e5a
21982151
React-NativeModulesApple: 88433b6946778bea9c153e27b671de15411bf225
21992152
React-perflogger: 9e8d3c0dc0194eb932162812a168aa5dc662f418
22002153
React-performancetimeline: 5a2d6efef52bdcefac079c7baa30934978acd023

‎apps/example/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"dependencies": {
2222
"@callstack/react-native-visionos": "^0.75.0",
23-
"@react-native-community/slider": "^4.5.7",
2423
"@react-navigation/bottom-tabs": "^7.2.1",
2524
"@react-navigation/elements": "^2.2.6",
2625
"@react-navigation/native": "^7.0.15",

‎apps/example/src/Examples/Video/Video.tsx‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
} from "@shopify/react-native-skia";
1111
import { Platform, Pressable, View, useWindowDimensions } from "react-native";
1212
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
13-
import Slider from "@react-native-community/slider";
1413

1514
// on Web because of CORS we need to use a local video
1615
const videoURL =
@@ -24,7 +23,7 @@ export const Video = () => {
2423
const { width, height } = useWindowDimensions();
2524
const fontSize = 20;
2625
const font = useFont(require("../../assets/SF-Mono-Semibold.otf"), fontSize);
27-
const { currentFrame, currentTime, duration } = useVideo(videoURL, {
26+
const { currentFrame, currentTime } = useVideo(videoURL, {
2827
paused,
2928
looping: true,
3029
seek,
@@ -62,22 +61,6 @@ export const Video = () => {
6261
/>
6362
</Canvas>
6463
</Pressable>
65-
<View style={{ height: 200, backgroundColor: "white" }}>
66-
<Slider
67-
style={{ width, height: 40 }}
68-
minimumValue={0}
69-
maximumValue={1}
70-
minimumTrackTintColor="#FFFFFF"
71-
maximumTrackTintColor="#000000"
72-
onSlidingComplete={(value: number) => {
73-
seek.value = value * duration;
74-
paused.value = false;
75-
}}
76-
onSlidingStart={() => {
77-
paused.value = true;
78-
}}
79-
/>
80-
</View>
8164
</View>
8265
);
8366
};

‎yarn.lock‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7287,13 +7287,6 @@ __metadata:
72877287
languageName: node
72887288
linkType: hard
72897289

7290-
"@react-native-community/slider@npm:^4.5.7":
7291-
version: 4.5.7
7292-
resolution: "@react-native-community/slider@npm:4.5.7"
7293-
checksum: f8b722c1821332398324d4d45a31c70b90007c1f859840ddc58388a0783d3a4706e7d0808898ecc76091de60041ae20a0758ef4d706d2ae06a4b4d46ff934028
7294-
languageName: node
7295-
linkType: hard
7296-
72977290
"@react-native-macos/virtualized-lists@npm:0.78.6":
72987291
version: 0.78.6
72997292
resolution: "@react-native-macos/virtualized-lists@npm:0.78.6"
@@ -17055,7 +17048,6 @@ __metadata:
1705517048
"@react-native-community/cli": 17.0.1
1705617049
"@react-native-community/cli-platform-android": 15.0.1
1705717050
"@react-native-community/cli-platform-ios": 15.0.1
17058-
"@react-native-community/slider": ^4.5.7
1705917051
"@react-native/babel-preset": 0.78.0
1706017052
"@react-native/eslint-config": 0.78.0
1706117053
"@react-native/metro-config": 0.78.0

0 commit comments

Comments
 (0)