upgrade for video

This commit is contained in:
u-e 2019-03-21 21:36:38 +03:00
parent 51cbd46f7d
commit 73630223d4
3 changed files with 9406 additions and 5 deletions

View File

@ -47,7 +47,7 @@
"react-native-extended-stylesheet": "^0.10.0",
"react-native-fast-image": "^4.0.14",
"react-native-html-renderer": "^1.0.0",
"react-native-image-crop-picker": "^0.21.3",
"react-native-image-crop-picker": "^0.23.0",
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native-linear-gradient": "^2.4.2",
"react-native-markdown-renderer": "^3.2.8",

View File

@ -90,7 +90,11 @@ class EditorContainer extends Component {
this.setState(
{
isEdit,
draftPost: { title: post.title, body: post.markdownBody, tags: post.json_metadata.tags },
draftPost: {
title: post.title,
body: post.markdownBody,
tags: post.json_metadata.tags,
},
},
() => {
this._getPurePost(post.author, post.permlink);
@ -170,7 +174,7 @@ class EditorContainer extends Component {
_handleOpenCamera = () => {
ImagePicker.openCamera({
includeBase64: true,
mediaType: 'video',
})
.then((image) => {
this._handleMediaOnSelected(image);
@ -293,8 +297,8 @@ class EditorContainer extends Component {
_submitPost = async (fields) => {
const {
navigation, currentAccount, pinCode, intl, isDefaultFooter,
} = this.props;
navigation, currentAccount, pinCode, intl, isDefaultFooter
} = this.props;
if (currentAccount) {
this.setState({ isPostSending: true });

9397
yarn.lock Normal file

File diff suppressed because it is too large Load Diff