mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 05:36:17 +00:00
26 lines
463 B
TypeScript
26 lines
463 B
TypeScript
import type React from "react";
|
|
import { StyleSheet, View } from "react-native";
|
|
import { Omni } from "react-native-omni";
|
|
|
|
function App(): React.JSX.Element {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Omni isRed={true} style={styles.view} testID="omni" />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: "center",
|
|
alignItems: "center",
|
|
},
|
|
view: {
|
|
width: 200,
|
|
height: 200,
|
|
},
|
|
});
|
|
|
|
export default App;
|