App perform a vibration feedback onLongPress (#213)
This commit is contained in:
parent
c86e06afa0
commit
bf6b919cb3
|
@ -9,6 +9,7 @@
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||||
|
|
||||||
<permission
|
<permission
|
||||||
android:name="${applicationId}.permission.C2D_MESSAGE"
|
android:name="${applicationId}.permission.C2D_MESSAGE"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Alert, Clipboard } from 'react-native';
|
import { Alert, Clipboard, Vibration } from 'react-native';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import ActionSheet from 'react-native-actionsheet';
|
import ActionSheet from 'react-native-actionsheet';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
|
@ -126,6 +126,7 @@ export default class MessageActions extends React.Component {
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.ActionSheet.show();
|
this.ActionSheet.show();
|
||||||
|
Vibration.vibrate(50);
|
||||||
});
|
});
|
||||||
} else if (this.props.permalink !== nextProps.permalink && nextProps.permalink) {
|
} else if (this.props.permalink !== nextProps.permalink && nextProps.permalink) {
|
||||||
// copy permalink
|
// copy permalink
|
||||||
|
|
Loading…
Reference in New Issue