From 9e9c5ec01aa847989647e53d494c0e433196d121 Mon Sep 17 00:00:00 2001 From: yungblud Date: Thu, 13 Apr 2023 16:20:15 +0900 Subject: [PATCH] feat: :zap: added example video --- examples/LaftelVideo/App.tsx | 101 ++--------------------------------- 1 file changed, 4 insertions(+), 97 deletions(-) diff --git a/examples/LaftelVideo/App.tsx b/examples/LaftelVideo/App.tsx index 753aeb86..34b602b5 100644 --- a/examples/LaftelVideo/App.tsx +++ b/examples/LaftelVideo/App.tsx @@ -10,111 +10,18 @@ import React, {type PropsWithChildren} from 'react'; import { - SafeAreaView, - ScrollView, - StatusBar, StyleSheet, - Text, - useColorScheme, View, } from 'react-native'; +import Video from 'react-native-video' -import { - Colors, - DebugInstructions, - Header, - LearnMoreLinks, - ReloadInstructions, -} from 'react-native/Libraries/NewAppScreen'; +const App = () => { -const Section: React.FC< - PropsWithChildren<{ - title: string; - }> -> = ({children, title}) => { - const isDarkMode = useColorScheme() === 'dark'; return ( - - - {title} - - - {children} - + + ); }; -const App = () => { - const isDarkMode = useColorScheme() === 'dark'; - - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, - }; - - return ( - - - -
- -
- Edit App.tsx to change this - screen and then come back to see your edits. -
-
- -
-
- -
-
- Read the docs to discover what to do next: -
- -
- - - ); -}; - -const styles = StyleSheet.create({ - sectionContainer: { - marginTop: 32, - paddingHorizontal: 24, - }, - sectionTitle: { - fontSize: 24, - fontWeight: '600', - }, - sectionDescription: { - marginTop: 8, - fontSize: 18, - fontWeight: '400', - }, - highlight: { - fontWeight: '700', - }, -}); - export default App;