paddingTop()
Applies paddingTop according to platform and version to any component that accepts the paddingTop property in its style.
Usage
import React from 'react';
import { Text, View } from "react-native";
// React Native UI DevKit
import { paddingTop } from 'react-native-ui-devkit';
const App = () => {
return (
<View style={[
paddingTop(),
{
// your custom style here...
}]}>
<Text>Text</Text>
</View>
);
}
export default App;