Comments (10)
Yes, from 0.9 to give more flexibility i removed the standard Separator that was inside Form.
Just add a Separator inside your form and pass the text to the label prop.
Thank you for using my library
from react-native-form-generator.
Actually, You've done a great work!! I should thank you to save my time.
and another problem is if I use the KeyboardAwareScrollView,
the Simulator will shows me an error:
Am I doing anything wrong?
and code is just:
import React, { Component } from 'react';
import {
View,
Text,
ScrollView
} from 'react-native';
import {
Form,
Separator,
InputField,
KeyboardAwareScrollView
} from "react-native-form-generator";
class ShirtOrder extends Component {
state={
formData: {}
}
render(){
return (
<KeyboardAwareScrollView
ref="scroll"
>
</KeyboardAwareScrollView>
);
}
}
export default ShirtOrder;
from react-native-form-generator.
yes.. that because KeyboardAwareScrollView is not exported anymore
you can try to access it directly.
try something like
import {
KeyboardAwareScrollView
} from "react-native-form-generator/src/KeyboardAwareScrollView";
or copy it from the repo.
from react-native-form-generator.
also not working but import it from react-native-keyboard-aware-scroll-view.
from react-native-form-generator.
yes you can also use that, but i highly encourage you to create your own solution using the official ScrollView
from react-native-form-generator.
If I clicked the InputField, error happened
maybe just like you said, I need to do it myself.
from react-native-form-generator.
can you post a code sample, that error means nothing, it's just the event that is triggered by the focusaction
from react-native-form-generator.
import React, { Component } from 'react';
import {
View,
Text,
ScrollView
} from 'react-native';
import {
Form,
Separator,
InputField,
} from "react-native-form-generator";
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
class ShirtOrder extends Component {
state={
formData: {}
}
handleFormFocus(event, reactNode){
this.refs.scroll.scrollToFocusedInput(event, reactNode)
}
handleFormChange(formData){
}
render(){
return (
<KeyboardAwareScrollView
ref="scroll"
>
<Form
ref="shirtOrder"
onFocus={ this.handleFormFocus.bind(this)}
onChange={this.handleFormChange.bind(this)}
>
<InputField
ref="ordernumnow"
label="orderNum" />
</Form>
</KeyboardAwareScrollView>
);
}
}
export default ShirtOrder;
from react-native-form-generator.
I found what's with this,
I've forgot to remove the code in handleFormFocus
from react-native-form-generator.
;) if you want post a screenshot of your final form in action, i would love
to see it.
Have a nice day.
On Thu, Jul 7, 2016 at 5:56 PM abellee [email protected] wrote:
I found what's with this,
I've forgot to remove the code in handleFormFocus—
You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGjfgKm8LRREQB6oZJu3w1R6hUAC1TJks5qTSG_gaJpZM4JHJF7
.Michael Cereda
http://michaelcereda.com
from react-native-form-generator.
Related Issues (20)
- InputField: Android style (color, font) not being applied. HOT 1
- [Android] InputField inherits propertie underlineColorAndroid of TextInput used anywhere in project
- Question: How to use the 'dateTimeFormat' attr in DatePicker?
- Autogrow on input
- Form values drop to initial when show/hide components
- Warning on 0.46.+ HOT 1
- How do I change the default style of picker?
- validate a field based on some other field value?
- TextInput disappear when prop label defined HOT 1
- Could not find a declaration file for module 'react-native-form-generator' with Typescript HOT 1
- Multiple Issues: InputFields not firing onFormChange, Pickers no longer work once Input has focus.
- undefined is not an object (evaluating '_react3.default.PropTypes.string') HOT 14
- style attribute inside input field not working
- increase height of textinput for multiline true HOT 1
- Value not getting inserted in formData via Custom Field
- Initial Value Example HOT 3
- Error: React native cannot read property 'string' of undefined HOT 7
- App crash in release mode when using 'View.propTypes.style' HOT 3
- handleFormChange (onChange) only passing one value at form level HOT 1
- [Android] Unable to resolve module: CountDownField
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-form-generator.