Skip to content

Commit 0867a3d

Browse files
author
Vir Desai
committed
change action sheet onPress timeout from 10 ms to 201 because the animated timing of the actionsheet is 200ms leading to an animation firing after the image picker appears and causes the image picker render to be overridden
1 parent 0b6a097 commit 0867a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MessageInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ class MessageInput extends PureComponent {
838838
break;
839839
default:
840840
}
841-
}, 10);
841+
}, 201); // 201ms to fire after the animation is complete https://github.com/beefe/react-native-actionsheet/blob/master/lib/ActionSheetCustom.js#L78
842842
}}
843843
styles={this.props.actionSheetStyles}
844844
/>

0 commit comments

Comments
 (0)