-
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
TextInput field collapses on Android #68
Comments
Does my example works on your configuration? On Tue, Oct 4, 2016, 7:50 AM gmlion [email protected] wrote:
|
You should see the problem in this example form, unless I have something else interfering: import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,ScrollView,
} from 'react-native';
import { Form,
Separator,InputField, LinkField,
SwitchField, PickerField,DatePickerField,TimePickerField
} from 'react-native-form-generator';
class EssentialForm extends React.Component {
render() {
return(
<ScrollView>
<Form>
<InputField ref='memo' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
<InputField ref='memo2' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
<InputField ref='memo3' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
<InputField ref='memo4' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
<InputField ref='memo5' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
<InputField ref='memo6' label='Memo' value={'value'} containerStyle={[{ paddingLeft: 7 }]} />
</Form>
</ScrollView>
);
}
}
module.exports = EssentialForm; In your example form, on Android, the first name field collapses, too, because of the label property being set. |
Encountering the same problem on Android; if a label is set for the InputField, the input seems to be collapsed and you can't see what is being typed into the field. |
I'm reinstalling a test environment to see if I can reproduce this error. |
the problem appears also in your demo example. has anyone found a fix for this? |
facing the same issue in android. The input field collapses to the almost the width of the cursor |
I'm refactoring the whole package to make it compatible with the last On Mon, Nov 21, 2016, 5:32 AM Philip Nunoo [email protected] wrote:
|
Thank you Michael. Quick question: I have a (multi) slider field component, supporting single and dual knob sliders. Any interest in this? It introduces a dependncy though |
Yes we can be very interested.. Does it support both Android and ios? On Mon, Nov 21, 2016, 5:38 AM florianbepunkt [email protected]
|
Yes it supports both android and ios. I'll upload and link an example later today. |
Sorry, was busy the last two days… can you please expose the Field class #80 ? And if you find time to respond to my issue regarding default values here #81 this would be appreciated. Especially with the slider IMO this poses a problem, as users probably won't change the default value. Anyway, here is my basic code for the slider, using
Usage would be like this
|
In InputComponent I see you're setting TextInput's width to this.state.width-this.state.labelWidth, but in Android label's width is the component total width, since the container defaults to { flexDirection: 'column', alignItems: 'stretch' }
I'm not sure if it is the intended behaviour, are you passing something to containerStyle or inputStyle to make it work?
I'm currently overriding the alignItems property to 'flex-start', so that label's width value is limited to its effective length.
The text was updated successfully, but these errors were encountered: