postreact native use swipe out

react native use swipe out

The component I use is https://github.com/dancormier/react-native-swipeout
but there is some codes needs to be updated.
for some of them should be updated from ES5 TO ES6
and for index

import React from 'react';
var tweenState = require('react-tween-state')
import {PanResponder, TouchableHighlight, StyleSheet, Text, View} from 'react-native';
var styles = require('./styles.js')