Comments (6)
Yes it's missing by now because it's required just for certain fields.
I'm planning to remove the dependency entirely.
Any thoughts?
On Thu, Mar 10, 2016, 6:24 PM Sam Fung [email protected] wrote:
LinkField has reference to react-native-vector-icons but it's not in
package.json. Therefore I got
Unable to resolve module react-native-vector-icons/Ionicons... error.—
Reply to this email directly or view it on GitHub
#7.
from react-native-form-generator.
Can we use this.props.children
within render()
of LinkField
to let user pass in the <Icon>
as a child so that we can remove the dependency of react-native-vector-icon
?
Replace https://github.com/MichaelCereda/react-native-form-generator/blob/master/fields/LinkField.js#L36-L38 with
{this.props.children}
And this is how to add a right arrow to the link field:
<LinkField>
<Icon name='ios-arrow-right'/>
</LinkField>
Just a quick thought, not sure it's right thing to do.
from react-native-form-generator.
Actually i was thinking a something more like this (to improve flexibility and allow developers to create their custom fields):
<LinkField
iconRight={<Icon name='ios-arrow-right'/>}
label="Sample text"
/>
that should avoid problems... i'm preparing a new release right now and including also android support
from react-native-form-generator.
This is great. Looking forward to new release.
from react-native-form-generator.
i'm going to release the new version in minutes.
Android support will be included after a lot of tests (i'm developing a cross browser app).
from react-native-form-generator.
@5amfung, please check my release, added some other examples in the README file
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.