Coder Social home page Coder Social logo

Comments (7)

Monte9 avatar Monte9 commented on May 27, 2024 1

I think that's a decent solution. In the case that we add a default height, the user can always use the containerStyle to override the height if need be.
@binoy14 if you have it working on your end, go ahead a push a hot-fix to master?

from react-native-elements.

dabit3 avatar dabit3 commented on May 27, 2024

Don't think this is possible. If you figure it out, feel free to submit a pr, thanks for the input.

from react-native-elements.

vladra avatar vladra commented on May 27, 2024

@dabit3 Envountered exactly same issue. If I'm placing FromInput inside view with alignItems 'center', input is not rendered/visible. If I remove alignItems, it works fine.

Blank screen in this case:

  <View style={{ alignItems: 'center' }}>
    <FormInput />
  </View>

And I see input in this case:

  <View >
    <FormInput />
  </View>

@Cretezy Have you solved this?

from react-native-elements.

Monte9 avatar Monte9 commented on May 27, 2024

@vladra any ideas on what might be causing it/possible fixes?

from react-native-elements.

vladra avatar vladra commented on May 27, 2024

@Monte9 Just encountered this. It's not working on blank new react-native project

from react-native-elements.

Monte9 avatar Monte9 commented on May 27, 2024

Reopening this issue since that's the case @vladra.

from react-native-elements.

binoy14 avatar binoy14 commented on May 27, 2024

@vladra @Monte9 I was trying to fix this and i think the problem when doing alignItems of center or even flex-start or flex-end is that the component is present but it has a width of 0. If you set a containerStyle or inputStyle with a width of not 0 then it does show up. I think the solution is to set the default width to be the device width. Thoughts?

from react-native-elements.

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.