Skip to content

Modifiers - expose extractAccessibilityProps & extractComponentProps #1043

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

Merged
merged 3 commits into from
Dec 6, 2020

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

Modifiers - expose extractAccessibilityProps & extractComponentProps

Changelog

Modifiers - expose extractAccessibilityProps & extractComponentProps

@@ -18,6 +18,7 @@ export {
} from './commons/new';
export * as Incubator from './incubator';
export * as Hooks from './hooks';
export * as Modifiers from './commons/modifiers';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is incorrect.
This will export all Modifiers functions separately, while we want to export it as a whole class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You can see the usage in the private lib's PR, it is as follows:

import {Modifiers} from 'react-native-ui-lib';
{...Modifiers.extractAccessibilityProps(this.props)}

Is that not what you meant?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes.. it's actually correct.
Not sure why it look weird before :/
merging..

@M-i-k-e-l M-i-k-e-l requested a review from ethanshar December 6, 2020 12:02
@ethanshar ethanshar merged commit 56fde30 into master Dec 6, 2020
@M-i-k-e-l M-i-k-e-l deleted the infra/modifiers-expose-some-extract-methods branch January 25, 2021 09:08
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.

2 participants