Giter VIP home page Giter VIP logo

Comments (9)

benjaminhorner avatar benjaminhorner commented on June 5, 2024 3

@bradleygore yes it works. So does the styling… partially. Padding does not work.

from nativescript-textinputlayout.

benjaminhorner avatar benjaminhorner commented on June 5, 2024 1

@bradleygore : thanks for your response. My bad. I had wrongly understood the docs.
It all works now.

from nativescript-textinputlayout.

chuckmitchell avatar chuckmitchell commented on June 5, 2024

I also have this issue on iOS 11.0.3
Works fine on android.

from nativescript-textinputlayout.

chuckmitchell avatar chuckmitchell commented on June 5, 2024

The issue here might be that you are not using a single TextInputLayout tag for iOS as described in the instructions.

from nativescript-textinputlayout.

benjaminhorner avatar benjaminhorner commented on June 5, 2024

@chuckmitchell I tried making it the bare minimum on iOS:
a single TextInputLayout tag and a single secure TextView… and it does not resolve the issue. Moreover, If I do a single TextInputLayout tag, I cannot set the hint for each TextView individually. I am not sure te documentation says you should use a single tag for iOS. I think it just means a single child tag.
@bradleygore ?

from nativescript-textinputlayout.

bradleygore avatar bradleygore commented on June 5, 2024

There should NOT be a nested TextField with iOS. The docs are very explicit about that:

https://github.com/bradleygore/nativescript-textinputlayout#ios

<TIL:TextInputLayout
    hint="{{ hint }}"
    isEnabled="{{ isEnabled }}"
    disabledColor="#c3c3c3"
    error="{{ error }}"
    text="{{ demoText }}"
    title="{{ title }}"
    color="{{ error ? '#aa0000' : '#d745ff' }}"
    tintColor="#d745ff"
    lineColor="#d745ff"
    selectedTitleColor="#ff45ca"
    selectedLineColor="#7a45ff"
    lineHeight="1.25"
    selectedLineHeight="3.5" />

from nativescript-textinputlayout.

bradleygore avatar bradleygore commented on June 5, 2024

@benjaminhorner - also, you can set the hint for each TextInputLayout individually (providing your variables backing the value are individualized...) as they are individual instances and in no way relating to one another... Please review the demo - there are multiple fields all with different hints in the demo app.

from nativescript-textinputlayout.

bradleygore avatar bradleygore commented on June 5, 2024

Styling issue is separate, so I'll only address secure here: The ios version of this simply inherits from the nativescript TextField (see here). If the TextField supports secure on iOS, then great - this should too just as it supports the text property. I am not sure why it would not support it exactly the same.

from nativescript-textinputlayout.

bradleygore avatar bradleygore commented on June 5, 2024

@benjaminhorner - was this closed because it ended up working, or some other reason?

from nativescript-textinputlayout.

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.