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

[iOS] Fix triangle views on iOS #23402

Closed
wants to merge 1 commit into from

Conversation

zhongwuzw
Copy link
Contributor

Summary

Fixes #22824 #21945 , the bug comes from #21208 , it was to fix #11897. Now Let's constrain edge adjust only when view has corners.

Changelog

[iOS] [Fixed] - Fix triangle views on iOS

Test Plan

Fixes issues like #11897 and #22824 #21945 , but attention, I'm not have device like comment in #11897, so I didn't test issue in #11897, but maybe I didn't break it, because only view which has corner may have issue like #11897.

@zhongwuzw zhongwuzw requested a review from shergin as a code owner February 12, 2019 15:50
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 12, 2019
@hramos
Copy link
Contributor

hramos commented Feb 12, 2019

PR looks fine, but I'm hesitant to merge this until the fix has been verified (from your test plan, it looks like it has not been tested).

@cpojer
Copy link
Contributor

cpojer commented Feb 12, 2019

@zhongwuzw as @hramos says, can you find a way (or a person) to test this?

@lfkwtz
Copy link

lfkwtz commented Feb 12, 2019

I tested the fix on the ios sim using some of the problematic views on #11897 and #22824 -- looks to fix the regression.

on 0.58.4 ---
screen shot 2019-02-12 at 5 22 49 pm

on 0.58.4 w/ fix ---
screen shot 2019-02-12 at 5 25 27 pm

@horacioh
Copy link

horacioh commented Feb 12, 2019

I test it in iOS simulator and real device. you can checkout the code here: https://github.com/horacioh/react-native-pull-test-23402

the way I test it was:

  • create a new RN project via [email protected]
  • npm i --save github:zhongwuzw/react-native#remote-master
  • npm install
  • npm start
  • react-native run-ios (on another terminal)

please let me know if this suits the needed test! @zhongwuzw @hramos

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Feb 12, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

@zhongwuzw merged commit 7a6fe0c into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Feb 13, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 13, 2019
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 14, 2019
grabbou pushed a commit that referenced this pull request Apr 8, 2019
Summary:
Fixes #22824 #21945 , the bug comes from #21208 , it was to fix #11897. Now Let's constrain edge adjust only when view has corners.

[iOS] [Fixed] - Fix triangle views on iOS
Pull Request resolved: #23402

Differential Revision: D14059192

Pulled By: hramos

fbshipit-source-id: be613bf056d3cc484f281f7ea3d08f251971700a
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RN 0.57.3 breaks CSS triangles on iOS Artifacts on View with borderRadius on only 2 corners on iOS
7 participants