Comments (49)
👍 I need this for <TextInput />
from react-native.
There is no pain guys - all will work with <View>
wrapping any <Text>, <TextInput>, <Touchable...>
from react-native.
👍 for TextInput
:)
from react-native.
<View>
wrapping is painful. It makes styling a pain. Especially with error states. 1 field = 4 independent styles.
from react-native.
It's not yet working for me (on 0.4.0)
from react-native.
Argh, nevermind, Apparently it is not activated for <Text />
nodes and I'm now wrapping a <View />
around them.
from react-native.
+1 for Text
from react-native.
Should be working now
from react-native.
Guys, make sure that you're voting it up in here: https://productpains.com/post/react-native/add-borderwidth-left-right-top-bottom-to-textinput-/ instead of +1'ing.
from react-native.
A workaround is to wrap your TextInput
or Text
in a View
and apply the borders on the View
.
from react-native.
+1 for Textinput
from react-native.
Yup, you noticed! So, the story here is that borders on only one side are not natively supported by iOS, we did some bad hacks in our fb codebase to support it.
We want to rewrite it cleanly in OSS. Make sure it supports borderRadius, and does the same diagonal appearance when there are two adjacent borders with a different color/size.
from react-native.
Can confirm that this works in 0.8.0 for <View />
But is there a reason why it doesn't support <Text />
?
from react-native.
+1 for <Text />
support
from react-native.
+1 for <TextInput />
from react-native.
+1 for <Text />
from react-native.
Any news on support for <Text />
?
from react-native.
+1 for <TextInput />
as well
from react-native.
Can you add it to https://productpains.com/product/react-native/ so that we can figure out prioritization?
from react-native.
fyi: https://productpains.com/post/react-native/add-borderwidth-left-right-top-bottom-to-textinput-/
from react-native.
+1
from react-native.
@ide, you guys don't have labels for these types of issues?
from react-native.
Definitely need it for <TextInput />
from react-native.
+1 on <TextInput />
from react-native.
+1 <TextInput />
from react-native.
+1 <TextInput />
, Googling brought me to this issue.
from react-native.
Ugh, spent hours banging my head against the wall trying to figure this out before I found this... +1 gajillion to make this work everywhere the docs say it should, like TextInput...
from react-native.
+1 for TextInput
from react-native.
Also, this is not a controversial feature. A pull request would be much more impactful :)
from react-native.
👍 TextInput
:)
Up also here guys: https://productpains.com/post/react-native/add-borderwidth-left-right-top-bottom-to-textinput-/
from react-native.
Hi, although I can use <View>
to wrap the <TextInput>
and <Text>
to support borderLeft/Right
..., I still need them. I don't want to wrap too many <View>
s to hack.
My react-native version is 0.24.1
from react-native.
It seems still doesn't working properly, have a look at the first item:
return (
<View style={[styles.eventInRoom, { borderLeftColor: roomColor }, styles.feedEventContainer]}>
<View style={styles.feedEventContent}>
Which has the following styles:
feedEventContainer: {
margin: 10,
marginBottom: 5,
borderRadius: 2,
shadowColor: '#000',
shadowOffset: { width: 0, height: 0 },
shadowOpacity: .3,
shadowRadius: 1.3,
backgroundColor: '#ffe',
},
eventInRoom: {
borderLeftWidth: 3,
borderTopWidth: 0,
borderRightWidth: 0,
borderBottomWidth: 0,
},
feedEventContent: {
padding: 10,
flexDirection: 'row',
borderBottomColor: '#ddd',
borderBottomWidth: .5,
},
from react-native.
+1 for <TextInput />
, also upvoted in productpain (Y)
from react-native.
+1 for Text and TextInput
from react-native.
+1 for what? TextInput 😙
from react-native.
+1 for TextInput
from react-native.
+1 TextInput
from react-native.
+1 for TextInput
from react-native.
+1 Text
from react-native.
+1 for TextInput
from react-native.
+1 for TextInput support, sooo many views for layout already :(
from react-native.
+1 for Text
from react-native.
+1 for TextInput (Pleeeeeease!)
from react-native.
+1 for TextInput, i need create text input group :(
from react-native.
+1 for TextInput
from react-native.
+1 for TextInput and View (RN 0.44)
from react-native.
i opened a request here https://react-native.canny.io/feature-requests/p/add-borderleft-right-top-bottomwidth-to-textinput--on-ios
please vote it =)
from react-native.
+1 for Text
from react-native.
There's way too many +1 comments in this thread, considering the issue was closed a long time ago. If you feel strongly about this being added to TextInput, please send a PR or upvote the entry on Canny: https://react-native.canny.io/feature-requests/p/add-borderwidth-left-right-top-bottom-to-textinput-
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
from react-native.
Related Issues (20)
- Could not find com.facebook.react:react-android:.:0.72.1 HOT 9
- Build issues with 0.71 RNSha256 XCode 15.3 HOT 4
- `fontVariant` doesn't work on iOS when using the new architecture
- UI problem with iOS floating keyboard in iPad. HOT 6
- TouchableWithoutFeedback does not support style HOT 1
- Cannot find EventEmitter for receivedTouches EventName[topTouchMove, topTouchEnd] on native library HOT 5
- RCTNativeAnimatedNodesManager.mm props is not a node HOT 1
- Unexpected scroll behaviors when using FlatList HOT 7
- When I integration react native with Existing Android Apps,I got a autolinking question. HOT 2
- Symbol not found: (_JSGlobalContextSetInspectable) HOT 2
- The directory ****/ios contains 2 projects HOT 3
- textInput props textAlign will cause long text to be cut off after the hyphen when out of focus and focus again
- close the first modal with animation, then open the second modal immediately, the second modal can't be showed HOT 2
- UI updates made from layout effect are flushed in separate UI transaction HOT 4
- Blob constructor is not spec compliant HOT 1
- [!] CocoaPods could not find compatible versions for pod "React-RCTAnimation": In Podfile: React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) HOT 3
- Build error in 0.73.6 HOT 3
- Fatal error "available height is undefined" when editing textinput the app closes HOT 3
- Inverted Flatlist not working when scrolled HOT 5
- `TextInput` cursor lags behind text when component is controlled if Auto-Correction and Predictive Text are enabled HOT 3
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.