Code QuizIntermediate

Platform.select in StyleSheet.create

Find the spread mistake in a shadow style.

Codejavascript
import { Platform, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  card: {
    borderRadius: 8,
    shadow: Platform.select({
      ios: { shadowOpacity: 0.2, shadowRadius: 4 },
      android: { elevation: 4 }
    })
  }
});

export default styles;

What is the bug in this style definition?