react-native-video/examples/video-caching/App.js

34 lines
660 B
JavaScript
Raw Normal View History

2018-02-28 05:45:17 -07:00
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
2018-02-28 05:56:43 -07:00
import React, { Component } from "react";
import { StyleSheet, Text, View } from "react-native";
2018-02-28 05:45:17 -07:00
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
2018-02-28 05:56:43 -07:00
<Text style={styles.welcome}>Caching is only supported in iOS!</Text>
2018-02-28 05:45:17 -07:00
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
2018-02-28 05:56:43 -07:00
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F5FCFF"
2018-02-28 05:45:17 -07:00
},
welcome: {
fontSize: 20,
2018-02-28 05:56:43 -07:00
textAlign: "center",
margin: 10
}
2018-02-28 05:45:17 -07:00
});