Permalink
Browse files

fix Remove expo thing here ...

... because we can use renderMessageVideo
  • Loading branch information...
xcarpentier committed Feb 7, 2019
1 parent d097c3a commit b5d54fbd3a42537018f16ffcd5e9cdbcce504c4c
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/MessageVideo.js
@@ -3,16 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import { StyleSheet, View, ViewPropTypes } from 'react-native';
import { isExpo } from './utils';

let Video;
if (isExpo()) {
const Expo = require('expo');
const { Video: ExpoVideo } = Expo;
Video = ExpoVideo;
} else {
Video = require('react-native-video');
}
import Video from 'react-native-video';

export default function MessageVideo({ containerStyle, videoProps, videoStyle, currentMessage }) {
return (

0 comments on commit b5d54fb

Please sign in to comment.