32 items
StatusBar backgroundColor Does Nothing on iOS
Code QuizComparing Platform.Version on Android
Code QuizTernary Platform Check Gone Wrong
Code QuizPlatform.select Value Mapping
Code QuizPlatform.OS Runtime Branching
Code QuizPlatform-Specific File Extensions
Code QuizDetecting Web vs Native
Code QuizPlatform.select in StyleSheet.create
Code QuizPlatform-Specific Style Objects
Code QuizPlatform.isPad Constant
Code QuizExtension Resolution Order
Code QuizDefault Case in Platform.select
Code QuizBranch Code vs Split Files
Slides / VideoPlatform Behavior in Shared Components
Slides / VideoOrganizing Platform-Specific Code
Slides / VideoDetecting Platform Constants: isPad & isTV
Slides / VideoConditional Styling per Platform
Slides / VideoNative File Extensions for Web Sharing
Slides / Video.native.js vs .web.js Resolution
QuizPlatform.select in StyleSheet
QuizShared vs Platform-Divergent Code
QuizPlatform Differences: elevation vs shadow
QuizDetecting Tablet with Platform.isPad
QuizConditional Rendering per Platform
QuizReading Platform.constants
QuizPlatform.select for Value Maps
QuizPlatform.Version for OS Checks
QuizPlatform-Specific File Extensions
QuizHow Metro Resolves Platform Extensions
Quiz.native.js for Web Code Sharing
FlashcardOrganizing Platform-Specific Code
FlashcardPhysical Device vs Simulator
FlashcardPlatform.select in StyleSheet.create
Find the spread mistake in a shadow style.
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?