Skip to content
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

React Native 双平台差异及解决方案记录 #5

Open
xwenliang opened this issue Feb 25, 2016 · 0 comments
Open

React Native 双平台差异及解决方案记录 #5

xwenliang opened this issue Feb 25, 2016 · 0 comments

Comments

@xwenliang
Copy link
Member

  1. TextInput
    iOS下的textAlign取值"auto", 'left', 'right', 'center', 'justify'
    android下的textAlign取值为'start', 'center', 'end'

  2. Image
    iOS下resizeMode可以写在行间属性,也可以写在style,后者覆盖前者
    android下resizeMode只可以写在行间,写在style无效

      //android 
      <Image resizeMode={'stretch'}></Image>
      //ios, style中的cover会覆盖掉stretch
      <Image resizeMode={'stretch'} style={{'resizeMode': 'cover'}}></Image>
@xwenliang xwenliang changed the title React Native 双平台差异记录 React Native 双平台差异及解决方案记录 Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant