react-native-true-sight
Version:
A cross-platform video player with customizable controls for React Native.
12 lines (11 loc) • 412 B
JavaScript
import React from "react";
import { View, ActivityIndicator, Platform, StyleSheet } from "react-native";
export const PlayerLoader = ({ color }) => (<View style={styles.progressBar}>
<ActivityIndicator size="large" color={color ?? (Platform.OS === "ios" ? "white" : "#EA0000")}/>
</View>);
const styles = StyleSheet.create({
progressBar: {
flex: 1,
justifyContent: "center",
},
});