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

Difference between iOS and Android #51

Open
pcrouillere opened this issue Aug 19, 2016 · 5 comments
Open

Difference between iOS and Android #51

pcrouillere opened this issue Aug 19, 2016 · 5 comments

Comments

@pcrouillere
Copy link

In iOS everything work but on Android the "right Icon" is not on the same line.. Do you know why ?

Here's my code :
<InputField ref='login' placeholder={I18n.t('mail')} returnKeyType={"next"} keyboardType={"email-address"} validationFucntion={this.props.validateLogin} iconRight={ <Icon name='ios-arrow-forward' size={30} style={[ {alignSelf:'center',marginRight:10, color: "#61d062"}, ((self) => { if (!!(self.refs.loginForm && self.refs.loginForm.refs.login)) { if (!self.refs.loginForm.refs.login.valid) return {color: '#d52222'} } })(this)]} /> } onEndEditing={() => { this.props.validateLogin(); this.refs.loginForm.refs.pwd.focus() }} />

@pcrouillere
Copy link
Author

@MichaelCereda
Apparently we can make it work :)

You just have to add a few change in "InputField.android.js" : see here : https://gist.github.com/pcrouillere/9cded78d2e32864df425e8874b802f61

@MichaelCereda
Copy link
Owner

oh. great.. would you mind to submit a pr?
I'm afk now, but I'll check the code later.
Thank you for using my project

On Fri, Aug 19, 2016 at 10:07 AM pcrouillere [email protected]
wrote:

@MichaelCereda https://github.com/MichaelCereda

Apparently we can make it work :)

You just have to add a few change in "InputField.android.js" : see here :
https://gist.github.com/pcrouillere/9cded78d2e32864df425e8874b802f61


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#51 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGjfr64LXoRtCDPW62BqYV7ezWzp6KIks5qhbiPgaJpZM4JofBz
.

Michael Cereda
http://michaelcereda.com

@MichaelCereda
Copy link
Owner

Yes.. I bet that this is the goal of everyone ;)
Can I see a screenshot, i think that it's actually very easy to solve.

Which react native version are you using?

@giannas
Copy link

giannas commented Aug 20, 2016

I was in the wrong repo, I clearly need a break!

@MichaelCereda
Copy link
Owner

lol, go get a coffee :)

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

3 participants