Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Border radius on android 4.4.2 #18224

Closed
sm2017 opened this issue Mar 6, 2018 · 8 comments
Closed

Border radius on android 4.4.2 #18224

sm2017 opened this issue Mar 6, 2018 · 8 comments
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@sm2017
Copy link
Contributor

sm2017 commented Mar 6, 2018

On android 4.4.2 borderRadius and borderWidth is not render correctly

Environment

OS: Windows 10

Node: 8.5.0

Yarn: 1.2.1

npm: 5.3.0

Watchman: Not Found

Xcode: N/A

Android Studio: Version 2.3.0.0 AI-162.4069837


Packages: (wanted => installed)

react: 16.2.0 => 16.2.0

react-native: 0.53.0 => 0.53.0

Expected Behavior

A rounded rectangle must be rendered

Actual Behavior

Screen shot on android 4.4.2
image

Steps to Reproduce

Correct demo : https://snack.expo.io/BJuR6khOM

Run the following code on android 4.4.2

import React, { Component } from 'react';
import { Text, StyleSheet, TextInput} from 'react-native';


export default class App extends Component {
  render() {
    return (
      <TextInput style={styles.container}/>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    borderWidth: 1,
    borderColor: '#00ff00',
    borderRadius:10,
    backgroundColor: '#ff0000',
    color: '#252525',
    paddingLeft: 15,
    paddingRight: 15,
    marginTop:50,
  },
});
@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release?

Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Old Version Ran Commands One of our bots successfully processed a command. labels Mar 7, 2018
@sm2017
Copy link
Contributor Author

sm2017 commented Mar 8, 2018

@react-native-bot it reproduced in last stable version too

@hramos hramos added the Android label Mar 8, 2018
@react-native-bot react-native-bot added Android Ran Commands One of our bots successfully processed a command. and removed Old Version ⏪ labels Mar 13, 2018
@react-native-bot react-native-bot added Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. labels Mar 18, 2018
@arma7x
Copy link

arma7x commented Mar 21, 2018

Have you test with borderTopRightRadius ? I'm on RN0.54 and using TopRight, TopLeft, BottomRight, BottomLeft to get radius render properly. and no border width.

@martjoao
Copy link

martjoao commented Apr 2, 2018

I'm having this issue as well. Have you found any workarounds for this, @sm2017 ? Border-width works OK, border radius too. When both are together I'm getting the same results you are.

@sm2017
Copy link
Contributor Author

sm2017 commented Apr 2, 2018

@martjoao I think it is a react native bug and must be fixed in native side
I have no workaround

@himabindugadupudi
Copy link
Contributor

Fixed with commit c5ca26a which is now in Master. Please test with Master build.

@tuvshinbatgeru
Copy link

It is working without borderWidth. With borderWidth issue still exists. Tested on latest release rn: 55.3 @himabindugadupudi

@sorakrisc
Copy link

sorakrisc commented Aug 6, 2018

Workaround I did was wrap the TextInput with View component and move all the style related with border to the View component.

<View style={...all the border style}>
<TextInput style={...textinput styling no border} />
</View>

Hope this help anyone..

@facebook facebook locked as resolved and limited conversation to collaborators Apr 24, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants