mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-14 07:08:44 +03:00
working on share feature
This commit is contained in:
parent
dff45476de
commit
e552ae8f79
@ -1,7 +1,7 @@
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { Alert } from 'react-native';
|
||||
import { Alert, Share } from 'react-native';
|
||||
import ActionSheet from 'react-native-actionsheet';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
@ -52,12 +52,23 @@ class PostDropdownContainer extends PureComponent {
|
||||
case '2':
|
||||
this._replyNavigation();
|
||||
break;
|
||||
case '3':
|
||||
setTimeout(() => {
|
||||
this._share();
|
||||
}, 500);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
_share = () => {
|
||||
Share.share({
|
||||
message: 'Selamun aleykim!'
|
||||
}).then(alert("Aleykum Selamin"));
|
||||
};
|
||||
|
||||
_reblog = () => {
|
||||
const {
|
||||
currentAccount, content, isLoggedIn, pinCode, intl,
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default ['COPY LINK', 'REBLOG', 'REPLY'];
|
||||
export default ['COPY LINK', 'REBLOG', 'REPLY', 'SHARE'];
|
||||
|
||||
export const VALUE = ['copy', 'reblog', 'reply'];
|
||||
export const VALUE = ['copy', 'reblog', 'reply', 'share'];
|
||||
|
Loading…
Reference in New Issue
Block a user