feat: upgrade react native gesture handler version to 2.3.1#1181
feat: upgrade react native gesture handler version to 2.3.1#1181vishalnarkhede merged 11 commits intodevelopfrom
Conversation
|
@vishalnarkhede Let me know if I am missing out on something. 😄 |
| ``` | ||
|
|
||
| ## Custom touchable not working | ||
| ## Touchables not working |
There was a problem hiding this comment.
I was just scrolling through this file, and apparently we already have a section called "Touchables Not Working". We should merge those two. That section is about v1 of RNGH. We can just include instructions about v2 there and leave this section as "Custom Touchable Not Working"
docs: improve react native-gesture-handler troubleshooting guide
f3612a4 to
dea1580
Compare
…hal87-rngh-troubleshooting-docs
…com/GetStream/stream-chat-react-native into khushal87-rngh-troubleshooting-docs
| return ( | ||
| <View style={[styles.container, container, { height: attachmentSelectionBarHeight ?? 52 }]}> | ||
| <TouchableOpacity | ||
| accessibilityLabel='upload-photo-touchable' |
There was a problem hiding this comment.
This sounds wrong.
https://reactnative.dev/docs/accessibility#accessibilitylabel
When a view is marked as accessible, it is a good practice to set an accessibilityLabel on the view, so that people who use VoiceOver know what element they have selected. VoiceOver will read this string when a user selects the associated element.
There was a problem hiding this comment.
Ideally it should be something sensible that voice over can read!!
There was a problem hiding this comment.
But adding these labels only for 2-3 views for the sake of testing doesn't sound good as well.
There was a problem hiding this comment.
And seems like RNGH 2.3.1 is out ;)
There was a problem hiding this comment.
examples/SampleApp/ios/Podfile
Outdated
| :path => config[:reactNativePath], | ||
| # to enable hermes on iOS, change `false` to `true` and then install pods | ||
| :hermes_enabled => true | ||
| :hermes_enabled => false |
There was a problem hiding this comment.
why are we disabling hermes?
There was a problem hiding this comment.
Since the app crashes on iOS for RN version 0.66 if Hermes is enabled. I think we discussed it over call. When we upgrade to 0.67 that might solve the problem and we can go for true
There was a problem hiding this comment.
And whats the reason for it?
examples/NativeMessaging/App.js
Outdated
| } from 'stream-chat-react-native'; | ||
|
|
||
| import { useStreamChatTheme } from './useStreamChatTheme'; | ||
| import { GestureHandlerRootView } from 'react-native-gesture-handler'; |
There was a problem hiding this comment.
It would be better if you remove changes from NativeMessaging app, since we are dropping this app in #1199
|
One more thing, please check what breaking changes were introduced in RNGH v2 and if we need to make any changes to SDK for that. |
|
After going through the docs, I don't find anything which affects our SDK except for the warning which comes up while running the app: and this is because of the bottom-sheet package as they are still in https://github.com/gorhom/react-native-bottom-sheet/blob/master/package.json#L65 |
|
🎉 This PR is included in version 4.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
This PR focuses on upgrading the
react-native-gesture-handlerversion to 2.3.1 for example applications and improving the React native gesture handler troubleshooting guide to help customers with the issues they might face with the package.🛠 Implementation details
Upgrade the dependency
react-native-gesture-handlerto 2.3.1 and documentation update.🎨 UI Changes
iOS
Android
🧪 Testing
☑️ Checklist
developbranch