mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Init using create-nitro-module
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user