Learn the correct method name for defining styles.
import { StyleSheet } from 'react-native'; const styles = StyleSheet.new({ box: { padding: 10 }, }); export default styles;
What is the bug in this code?