easy5 pts · first answer countscross-platform-mobilereact-native
Using Platform.select
What does this style produce on Android?
const card = {
...Platform.select({
ios: { shadowOpacity: 0.2 },
android: { elevation: 4 },
}),
}Discussion 0
Join free to post in the discussion.
Related questions
- Why list items need keysMobile App Developer
- Calling setCount twiceMobile App Developer
- Dart final versus constMobile App Developer
- What a BuildContext isMobile App Developer
- Reading the screen widthMobile App Developer
- Expanded inside a RowMobile App Developer
- ListView.builder for a long feedMobile App Developer
- Role of pubspec.yamlMobile App Developer