mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 05:36:17 +00:00
24 lines
479 B
TypeScript
24 lines
479 B
TypeScript
import React from 'react';
|
|
import { View, StyleSheet } 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; |