fix long press on file list items
This commit is contained in:
parent
4287793d3f
commit
6ae8c32f72
2 changed files with 9 additions and 2 deletions
|
@ -107,7 +107,15 @@ class FileListItem extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<View style={style}>
|
||||
<TouchableOpacity style={style} onPress={this.onPressHandler} onLongPress={() => onLongPress(claim)}>
|
||||
<TouchableOpacity
|
||||
style={style}
|
||||
onPress={this.onPressHandler}
|
||||
onLongPress={() => {
|
||||
if (onLongPress) {
|
||||
onLongPress(claim);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<FileItemMedia
|
||||
style={fileListStyle.thumbnail}
|
||||
blurRadius={obscure ? 15 : 0}
|
||||
|
|
|
@ -43,7 +43,6 @@ import thunk from 'redux-thunk';
|
|||
|
||||
const globalExceptionHandler = (error, isFatal) => {
|
||||
if (error && NativeModules.Firebase) {
|
||||
console.log(error);
|
||||
NativeModules.Firebase.logException(isFatal, error.message ? error.message : 'No message', JSON.stringify(error));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue