Skip to main content

marginTop()

Applies marginTop() according to platform and version to any component that accepts the marginTop property in its style.

Usage

import React from 'react';
import { Text, View } from "react-native";

// React Native UI DevKit
import { marginTop } from 'react-native-ui-devkit';

const App = () => {
return (
<View style={[
marginTop(),
{
// your custom style here...
}]}>
<Text>Text</Text>
</View>
);
}

export default App;