Comments (9)
@bradleygore yes it works. So does the styling… partially. Padding does not work.
from nativescript-textinputlayout.
@bradleygore : thanks for your response. My bad. I had wrongly understood the docs.
It all works now.
from nativescript-textinputlayout.
I also have this issue on iOS 11.0.3
Works fine on android.
from nativescript-textinputlayout.
The issue here might be that you are not using a single TextInputLayout tag for iOS as described in the instructions.
from nativescript-textinputlayout.
@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.
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.
@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.
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.
@benjaminhorner - was this closed because it ended up working, or some other reason?
from nativescript-textinputlayout.
Related Issues (20)
- How to use this in Nativescript angular HOT 4
- How to use in Nativescript Angular iOS? HOT 5
- Question Change margin between Text Hint and Text Field HOT 4
- changing hint color HOT 5
- Error on iOS Build regarding Swift version HOT 1
- Unable to Style the TextField HOT 9
- keyboardType not working on ios HOT 3
- bottom line styling on android? HOT 2
- Support for Nativescript 4.x.x HOT 1
- iOS Angular binding HOT 4
- Unable to build project for iOS with this plugin and Xcode 9 HOT 3
- Better example on how to style on Android HOT 1
- Maintainable fix for Unable to determine Swift version, after compilation Pod fix got wiped out HOT 1
- Unable to build - require a higher minimum deployment HOT 1
- Custom font not working on Android HOT 1
- Is unified syntax possible? HOT 4
- Element with error does not auto-scroll above the soft keyboard
- Problems to build in IOS HOT 1
- Upgrade to tns 6.0 crashes on TextInputLayout HOT 1
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 nativescript-textinputlayout.