Giter VIP home page Giter VIP logo

Comments (6)

MichaelCereda avatar MichaelCereda commented on September 15, 2024

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.

5amfung avatar 5amfung commented on September 15, 2024

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.

MichaelCereda avatar MichaelCereda commented on September 15, 2024

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.

5amfung avatar 5amfung commented on September 15, 2024

This is great. Looking forward to new release.

from react-native-form-generator.

MichaelCereda avatar MichaelCereda commented on September 15, 2024

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.

MichaelCereda avatar MichaelCereda commented on September 15, 2024

@5amfung, please check my release, added some other examples in the README file

from react-native-form-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.