下面代码是在ES6语法,实现图片的播放,但拖到时停止(onScrollBeginDrag)和停止拖动(onScrollEndDrag)后继续播放会出现问题,做个记录,也请大神指点一下。
import React, {Fragment,Component} from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
Image
} from 'react-native';
import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
import defaults from "@babel/runtime/helpers/esm/defaults";
const Dimensions = require('Dimensions');
const {width} = Dimensions.get('window');
//引入json数据
let ImageData = require('./ImageData.json');
export default class App