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-Specific Style Objects
Spot why platform styles never merge into the base style.
import { Platform, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
box: {
padding: 10,
Platform.select({ ios: { marginTop: 20 }, android: { marginTop: 0 } })
}
});
export default styles;Why is this style object invalid?