We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c34916 commit edb046fCopy full SHA for edb046f
package/src/components/AttachmentPicker/AttachmentPicker.tsx
@@ -248,14 +248,14 @@ export const AttachmentPicker = React.forwardRef(
248
}, [selectedPicker]);
249
250
useEffect(() => {
251
- const keyboardListener =
+ const keyboardSubscription =
252
Platform.OS === 'ios'
253
? Keyboard.addListener('keyboardWillShow', hideAttachmentPicker)
254
: Keyboard.addListener('keyboardDidShow', hideAttachmentPicker);
255
256
return () => {
257
- if (keyboardListener?.remove) {
258
- keyboardListener.remove();
+ if (keyboardSubscription?.remove) {
+ keyboardSubscription.remove();
259
return;
260
}
261
0 commit comments