A way of calculating the numColumns property of a React Native Flatlist to make it dynamic and adaptable to changing screen sizes and orientations