Skip to content

Commit 570649f

Browse files
committed
fix: remove rngh
1 parent 393ab97 commit 570649f

File tree

11 files changed

+4
-209
lines changed

11 files changed

+4
-209
lines changed

examples/SampleApp/App.tsx

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ if (__DEV__) {
2828
}
2929

3030
import type { StackNavigatorParamList, UserSelectorParamList } from './src/types';
31-
import { GestureHandlerRootView } from 'react-native-gesture-handler';
3231
import { navigateToChannel, RootNavigationRef } from './src/utils/RootNavigation';
3332

3433
LogBox.ignoreLogs(['Non-serializable values were found in the navigation state']);
@@ -53,88 +52,4 @@ const App = () => {
5352
</View>
5453
);
5554
};
56-
57-
// TODO: Split the stack into multiple stacks - ChannelStack, CreateChannelStack etc.
58-
const HomeScreen = () => {
59-
return (
60-
<Stack.Navigator
61-
initialRouteName={initialChannelIdGlobalRef.current ? 'ChannelScreen' : 'MessagingScreen'}
62-
>
63-
<Stack.Screen
64-
component={ChatScreen}
65-
name='MessagingScreen'
66-
options={{ headerShown: false }}
67-
/>
68-
<Stack.Screen
69-
component={ChannelScreen}
70-
initialParams={
71-
initialChannelIdGlobalRef.current
72-
? { channelId: initialChannelIdGlobalRef.current }
73-
: undefined
74-
}
75-
name='ChannelScreen'
76-
options={{
77-
gestureEnabled: Platform.OS === 'ios',
78-
headerShown: false,
79-
}}
80-
/>
81-
<Stack.Screen
82-
component={NewDirectMessagingScreen}
83-
name='NewDirectMessagingScreen'
84-
options={{
85-
headerShown: false,
86-
}}
87-
/>
88-
<Stack.Screen
89-
component={NewGroupChannelAddMemberScreen}
90-
name='NewGroupChannelAddMemberScreen'
91-
options={{ headerShown: false }}
92-
/>
93-
<Stack.Screen
94-
component={NewGroupChannelAssignNameScreen}
95-
name='NewGroupChannelAssignNameScreen'
96-
options={{ headerShown: false }}
97-
/>
98-
<Stack.Screen
99-
component={OneOnOneChannelDetailScreen}
100-
name='OneOnOneChannelDetailScreen'
101-
options={{ headerShown: false }}
102-
/>
103-
<Stack.Screen
104-
component={GroupChannelDetailsScreen}
105-
name='GroupChannelDetailsScreen'
106-
options={{ headerShown: false }}
107-
/>
108-
<Stack.Screen
109-
component={ChannelImagesScreen}
110-
name='ChannelImagesScreen'
111-
options={{ headerShown: false }}
112-
/>
113-
<Stack.Screen
114-
component={ChannelFilesScreen}
115-
name='ChannelFilesScreen'
116-
options={{ headerShown: false }}
117-
/>
118-
<Stack.Screen
119-
component={ChannelPinnedMessagesScreen}
120-
name='ChannelPinnedMessagesScreen'
121-
options={{ headerShown: false }}
122-
/>
123-
<Stack.Screen
124-
component={SharedGroupsScreen}
125-
name='SharedGroupsScreen'
126-
options={{ headerShown: false }}
127-
/>
128-
<Stack.Screen
129-
component={ThreadScreen}
130-
name='ThreadScreen'
131-
options={{
132-
gestureEnabled: Platform.OS === 'ios',
133-
headerShown: false,
134-
}}
135-
/>
136-
</Stack.Navigator>
137-
);
138-
};
139-
14055
export default App;

examples/SampleApp/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'react-native-gesture-handler';
21
import { AppRegistry } from 'react-native';
32

43
import App from './App';

examples/SampleApp/ios/Podfile.lock

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,31 +1654,6 @@ PODS:
16541654
- React-logger (= 0.79.3)
16551655
- React-perflogger (= 0.79.3)
16561656
- React-utils (= 0.79.3)
1657-
- RNGestureHandler (2.26.0):
1658-
- DoubleConversion
1659-
- glog
1660-
- hermes-engine
1661-
- RCT-Folly (= 2024.11.18.00)
1662-
- RCTRequired
1663-
- RCTTypeSafety
1664-
- React-Core
1665-
- React-debug
1666-
- React-Fabric
1667-
- React-FabricComponents
1668-
- React-featureflags
1669-
- React-graphics
1670-
- React-hermes
1671-
- React-ImageManager
1672-
- React-jsi
1673-
- React-NativeModulesApple
1674-
- React-RCTFabric
1675-
- React-renderercss
1676-
- React-rendererdebug
1677-
- React-utils
1678-
- ReactCodegen
1679-
- ReactCommon/turbomodule/bridging
1680-
- ReactCommon/turbomodule/core
1681-
- Yoga
16821657
- SocketRocket (0.7.1)
16831658
- Yoga (0.0.0)
16841659

@@ -1754,7 +1729,6 @@ DEPENDENCIES:
17541729
- ReactAppDependencyProvider (from `build/generated/ios`)
17551730
- ReactCodegen (from `build/generated/ios`)
17561731
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
1757-
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
17581732
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
17591733

17601734
SPEC REPOS:
@@ -1901,8 +1875,6 @@ EXTERNAL SOURCES:
19011875
:path: build/generated/ios
19021876
ReactCommon:
19031877
:path: "../node_modules/react-native/ReactCommon"
1904-
RNGestureHandler:
1905-
:path: "../node_modules/react-native-gesture-handler"
19061878
Yoga:
19071879
:path: "../node_modules/react-native/ReactCommon/yoga"
19081880

@@ -1976,7 +1948,6 @@ SPEC CHECKSUMS:
19761948
ReactAppDependencyProvider: 552391af67c115d8ee20f9359711e7821145cd96
19771949
ReactCodegen: 5a3b071aec923e67260550b3f65329f844d691fa
19781950
ReactCommon: 1dce2374d9dc2cdf634244f1584513b606512750
1979-
RNGestureHandler: 2fa49aef8b58d35bcc61abe06ffecc4bcc5268a4
19801951
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
19811952
Yoga: b2eaabf17044cd4273a661b14eb83f9fd2c90491
19821953

examples/SampleApp/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
},
2525
"dependencies": {
2626
"react": "19.0.0",
27-
"react-native": "^0.79.3",
28-
"react-native-gesture-handler": "^2.26.0"
27+
"react-native": "^0.79.3"
2928
},
3029
"devDependencies": {
3130
"@babel/core": "^7.27.4",

examples/SampleApp/src/components/BottomSheetOverlay.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import React, { useEffect } from 'react';
22
import { Keyboard, StyleSheet } from 'react-native';
3-
import {
4-
PanGestureHandler,
5-
PanGestureHandlerGestureEvent,
6-
State,
7-
TapGestureHandler,
8-
} from 'react-native-gesture-handler';
93

104
import { AddMemberBottomSheet } from './AddMemberBottomSheet';
115
import { ConfirmationBottomSheet } from './ConfirmationBottomSheet';

examples/SampleApp/src/components/ChannelInfoOverlay.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import React, { useEffect } from 'react';
22
import { FlatList, Keyboard, SafeAreaView, StyleSheet, Text, View, ViewStyle } from 'react-native';
33
import dayjs from 'dayjs';
44
import relativeTime from 'dayjs/plugin/relativeTime';
5-
import {
6-
PanGestureHandler,
7-
PanGestureHandlerGestureEvent,
8-
State,
9-
TapGestureHandler,
10-
} from 'react-native-gesture-handler';
115

126
import { useAppOverlayContext } from '../context/AppOverlayContext';
137
import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext';

examples/SampleApp/src/components/ChannelPreview.tsx

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react';
22
import { StyleSheet, View } from 'react-native';
3-
import { RectButton } from 'react-native-gesture-handler';
4-
import Swipeable from 'react-native-gesture-handler/Swipeable';
53

64
import { useAppOverlayContext } from '../context/AppOverlayContext';
75
import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext';
@@ -48,37 +46,5 @@ export const ChannelPreview = (
4846
? Object.values(channel.state.members).filter((member) => member.user?.id !== data?.clientId)
4947
: [];
5048

51-
return (
52-
<Swipeable
53-
overshootLeft={false}
54-
overshootRight={false}
55-
renderRightActions={() => (
56-
<View style={[styles.swipeableContainer]}>
57-
<RectButton
58-
onPress={() => {
59-
setOverlay('channelInfo');
60-
}}
61-
style={[styles.leftSwipeableButton]}
62-
/>
63-
<RectButton
64-
onPress={() => {
65-
setDataBottomSheet({
66-
confirmText: 'DELETE',
67-
onConfirm: () => {
68-
channel.delete();
69-
setOverlay('none');
70-
},
71-
subtext: `Are you sure you want to delete this ${
72-
otherMembers.length === 1 ? 'conversation' : 'group'
73-
}?`,
74-
title: `Delete ${otherMembers.length === 1 ? 'Conversation' : 'Group'}`,
75-
});
76-
setOverlay('confirmation');
77-
}}
78-
style={[styles.rightSwipeableButton]}
79-
/>
80-
</View>
81-
)}
82-
/>
83-
);
49+
return null;
8450
};

examples/SampleApp/src/components/NewDirectMessagingSendButton.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import { Alert } from 'react-native';
3-
import { TouchableOpacity } from 'react-native-gesture-handler';
43

5-
import { NewDirectMessagingScreenNavigationProp } from '../screens/NewDirectMessagingScreen';
64

75
import { useUserSearchContext } from '../context/UserSearchContext';
86
import { useAppContext } from '../context/AppContext';
@@ -13,13 +11,7 @@ const SendButtonWithContext = (
1311
const { disabled = false, giphyActive, sendMessage } = props;
1412

1513

16-
return (
17-
<TouchableOpacity
18-
disabled={disabled}
19-
onPress={sendMessage}
20-
testID='send-button'
21-
/>
22-
);
14+
return null;
2315
};
2416

2517
const areEqual = (

examples/SampleApp/src/components/UserInfoOverlay.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import React, { useEffect } from 'react';
22
import { Alert, Keyboard, SafeAreaView, StyleSheet, Text, View, ViewStyle } from 'react-native';
33
import dayjs from 'dayjs';
44
import relativeTime from 'dayjs/plugin/relativeTime';
5-
import {
6-
PanGestureHandler,
7-
PanGestureHandlerGestureEvent,
8-
State,
9-
TapGestureHandler,
10-
} from 'react-native-gesture-handler';
115

126
import { useAppOverlayContext } from '../context/AppOverlayContext';
137
import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext';

examples/SampleApp/src/screens/ChannelScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Platform, StyleSheet, View } from 'react-native';
33

44
import { useAppContext } from '../context/AppContext';
55
import { ScreenHeader } from '../components/ScreenHeader';
6-
import { TouchableOpacity } from 'react-native-gesture-handler';
76
import { useChannelMembersStatus } from '../hooks/useChannelMembersStatus';
87

98
import type { StackNavigatorParamList } from '../types';

0 commit comments

Comments
 (0)