-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why split android and ios versions? #54
Comments
The fields have version for android and a version for ios just for styling purposes but the underlying component is unified. |
Well it would make more sense to have the same default styling between both ios and android (and to provide android or ios specific styling in a platform conditional stylesheet that can be passed to the 'style' tag of the component if someone really wants to have a different style on the two platforms). Basically, what I propose is to have a default style that is exactly the same on android and ios (when possible) and then, you can also provide in the lib a platform dependent stylesheet for each component if you want. Like:
and a user can choose or not to apply this platform specific style to a form component like:
Or
if he wants to extend/override the default platform specific style And if he don't want a platform specific style, he could just do:
to extend/override the common default style |
That's right, I'm also thinking to implement the same style for both. I'm about to submit another update that will fix the android On Tue, Aug 23, 2016, 5:22 PM ramsestom [email protected] wrote:
|
I think you should just propose ios or android styles as themes (with stylesheets), that the user can choose or not to apply to the component, and keep the default styling identical between both platforms. What I would do:
This way, you can stick with the default common styling or have a platform specific one by simply applying the platform_style stylesheet to you component (then, on both case, you can extend/override this style to have your really personal style for your app) |
I saw that each field type has two different versions. One for ios and one for android (for example InputField.ios.js and InputField.android.js).
What is the reason for this? That seems to go completely against the philosophy of react-native (having a unified version of an app between different platforms) and is a potential source of inconsistencies (like 'right Icon' that appear on the same lime as the textfield on ios but on a different one on android due to different default stylesheets between the two classes...)
To me, it would make more sense to have android and ios share as much code as possible (same default stylesheets and templates...)
The text was updated successfully, but these errors were encountered: