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

Added basic support for accepting custom shouldForwardProp option in React Native related packages. #1642

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

Andarist
Copy link
Member

closes #900

There is an open PR for adding TS types for @emotion/native - #1634 - and I'd like to keep those types in sync with what we have for @emotion/styled and to make it easier I had to implement basic support for this here.

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2019

🦋 Changeset is good to go

Latest commit: acae230

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

let mergedProps = pickAssign(testAlwaysTrue, {}, props, {
theme: props.theme || React.useContext(ThemeContext)
})
let mergedProps = props
Copy link
Member Author

Choose a reason for hiding this comment

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

those changes align the implementation to what we have in @emotion/styled

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 18, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit acae230:

Sandbox Source
Emotion Configuration

@codecov
Copy link

codecov bot commented Nov 18, 2019

Codecov Report

Merging #1642 into next will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/primitives-core/src/utils.js 100% <ø> (ø) ⬆️
packages/primitives-core/src/styled.js 100% <100%> (ø) ⬆️
packages/babel-plugin-emotion/src/core-macro.js 100% <0%> (ø) ⬆️
packages/babel-plugin-emotion/src/index.js 93.97% <0%> (+0.14%) ⬆️

@Andarist
Copy link
Member Author

I'm going to just merge this in as native packages are not our main focus. I'm open to review even after merging - changes are rather trivial though, so 🤷‍♂

@Andarist Andarist merged commit f1b7c9d into next Nov 18, 2019
@Andarist Andarist deleted the native/should-forward-prop branch November 18, 2019 10:30
louisgv pushed a commit to louisgv/emotion that referenced this pull request Sep 6, 2020
@github-actions github-actions bot mentioned this pull request Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant