iosOldVersion()
Returns whether the iOS version is lower than 15 so you can perform specific deployments for older versions.
info
Starting with version 15, there were many layout and behavior changes.
Usage
import React from 'react';
import { Text, View } from "react-native";
// React Native UI DevKit
import { iosOldVersion } from 'react-native-ui-devkit';
const App = () => {
return (
<View style={[
iosOldVersion() && {
// your custom style for iOS below version 15 here...
},
{
// your custom style here...
}]}>
<Text>Text</Text>
</View>
);
}
export default App;