Skip to content

Commit 6552e7a

Browse files
committed
chore: remove unused dependencies from package.json and yarn.lock, and update README with troubleshooting tips for common errors
1 parent 42e71df commit 6552e7a

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ This library is optimized for performance:
353353
1. **Tabs not animating**: Make sure you have properly installed and configured react-native-reanimated
354354
2. **Gestures not working**: Ensure react-native-gesture-handler is properly set up
355355
3. **TypeScript errors**: Make sure you have the latest version of the library
356+
4. **"Tried to register two views with the same name RNGestureHandlerButton"**: This error occurs when there are multiple instances of react-native-gesture-handler. To fix:
357+
- Clear Metro cache: `npx react-native start --reset-cache`
358+
- Clean install: `rm -rf node_modules && npm install`
359+
- If using Expo, don't manually install react-native-gesture-handler as it's included in the SDK
356360

357361
### Setup Checklist
358362

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,5 @@
156156
"languages": "js",
157157
"type": "library",
158158
"version": "0.54.3"
159-
},
160-
"dependencies": {
161-
"react-native-gesture-handler": "^2.28.0",
162-
"react-native-pager-view": "^6.9.1",
163-
"react-native-reanimated": "^4.1.0",
164-
"react-native-worklets": "^0.5.1"
165159
}
166160
}

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,10 +3236,6 @@ __metadata:
32363236
react: 19.1.0
32373237
react-native: 0.81.4
32383238
react-native-builder-bob: ^0.40.13
3239-
react-native-gesture-handler: ^2.28.0
3240-
react-native-pager-view: ^6.9.1
3241-
react-native-reanimated: ^4.1.0
3242-
react-native-worklets: ^0.5.1
32433239
release-it: ^19.0.4
32443240
typescript: ^5.9.2
32453241
peerDependencies:

0 commit comments

Comments
 (0)