Skip to content

Commit

Permalink
Explanation doesn't include all examples provided (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyray-k committed Apr 15, 2020
1 parent f98354b commit 5bae03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/platform-specific-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const styles = StyleSheet.create({
});
```

This will result in a container having `flex: 1` on both platforms, a red background color on iOS, and a blue background color on Android.
This will result in a container having `flex: 1` on both platforms, a red background color on iOS, a green background color on Android, and a blue background on other platforms.

Since it accepts `any` value, you can also use it to return platform specific component, like below:

Expand Down

0 comments on commit 5bae03d

Please sign in to comment.