Description
Introduction
Some React Native APIs have a different look and/or behavior on iOS and Android. It seems like the guideline is to emulate default behavior on each OS, but often developers override those defaults to have more consistent behavior. The question is whether React Native would consider PRs for more consistent cross-platform defaults.
The Core of It
Some examples:
- On Android, an alert is dismissable by tapping outside of the modal. On iOS, an alert is not dismissable by default.
- A
multiline
<TextInput/>
has it's Text by default aligned on top on iOS but centered on Android.
This is consistent with the OS defaults, but users of RN often prefer the behavior to be the same when building their apps.
We have built a library which collects components and APIs to have the same behavior and looks cross-platform. https://github.com/kida007/react-native-normalized.
Discussion points
The discussion is about whether React Native would consider adapting some of the changes to components we have made in our project or if this is not the goal of the React Native Core Library.