Gets the style for positioning a modal based on the specified position.
Object containing the desired modal position.
const positionStyle = getModalPosition({ position: 'center' });// Output: { justifyContent: 'center', alignItems: 'center' }const topLeftStyle = getModalPosition({ position: 'topLeft' });// Output: { justifyContent: 'flex-start', alignItems: 'flex-start' } Copy
const positionStyle = getModalPosition({ position: 'center' });// Output: { justifyContent: 'center', alignItems: 'center' }const topLeftStyle = getModalPosition({ position: 'topLeft' });// Output: { justifyContent: 'flex-start', alignItems: 'flex-start' }
Gets the style for positioning a modal based on the specified position.