Skip to main content

View

The View is the fundamental component of React Native for building a user interface.

How to use

import React from 'react';
import {View, Text} from '@gyri/native-ui-components';

const App = ({style, className}) => {
return (
<View>
<View className={className} style={style}>
<Text>This is my text</Text>
</View>
</View>
)
}
export default App

Props

#NameData typeDefault valueValuesDescription
1stylestringIt allows you to style your components
2classNamestring''It defined external CSS stylesheet.

For more details https://reactnative.dev/docs/view