diff --git a/ios/Timepill/Info.plist b/ios/Timepill/Info.plist
index 51784d6..7872524 100644
--- a/ios/Timepill/Info.plist
+++ b/ios/Timepill/Info.plist
@@ -23,7 +23,7 @@
CFBundleSignature
????
CFBundleVersion
- 30
+ 32
LSRequiresIPhoneOS
NSAppTransportSecurity
diff --git a/src/component/comment/comment.js b/src/component/comment/comment.js
index 74da93c..c399883 100644
--- a/src/component/comment/comment.js
+++ b/src/component/comment/comment.js
@@ -49,7 +49,7 @@ export default class Comment extends Component {
comment.recipient == null
? {comment.content}
: (
-
+
@{comment.recipient.name}
{comment.content}
diff --git a/src/component/comment/commentList.js b/src/component/comment/commentList.js
index 9371919..4a58be6 100644
--- a/src/component/comment/commentList.js
+++ b/src/component/comment/commentList.js
@@ -8,7 +8,8 @@ import {
View,
Alert,
Keyboard,
- DeviceEventEmitter
+ DeviceEventEmitter,
+ Clipboard,
} from 'react-native';
import {Navigation} from 'react-native-navigation';
import {Divider} from "react-native-elements";
@@ -131,6 +132,17 @@ export default class CommentList extends Component {
});
}
+ _onCommentLongPress = (comment) => {
+ ActionSheet.showActionSheetWithOptions({
+ options: ['复制内容', '取消'],
+ cancelButtonIndex: 1,
+ }, (index) => {
+ if (index === 0) {
+ Clipboard.setString(comment.content);
+ }
+ });
+ };
+
render() {
let selfInfo = this.state.selfInfo;
@@ -146,7 +158,10 @@ export default class CommentList extends Component {
renderItem={({item}) => {
return (
- this._onCommentPress(item)}>
+ this._onCommentPress(item)}
+ onLongPress={() => this._onCommentLongPress(item)}
+ >