Skip to content

Feat/add label to wheelPicker #1259

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
Apr 18, 2021
Merged

Feat/add label to wheelPicker #1259

merged 3 commits into from
Apr 18, 2021

Conversation

lidord-wix
Copy link
Contributor

Description

Add right label to the wheelPicker selected value

Changelog

Add right label to the wheelPicker selected value

/>
center
>
<Text marginL-80 text80M {...rightLabelProps} color={activeTextColor} style={rightLabelStyle}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should change the function name / move the label out, since now it's not rendering only the separators

/**
* Additional label on the right of the item text
*/
rightLabel?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there going to be another label? if not, maybe we should call it label

@@ -28,6 +29,18 @@ export interface WheelPickerProps {
* Row text style
*/
textStyle?: TextStyle;
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we supposed to do any changes in this files (it's under generatedType)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't, It's automatic :)

@lidord-wix lidord-wix requested a review from mendyEdri April 14, 2021 10:51
@@ -143,7 +159,7 @@ const WheelPicker = React.memo(
[itemHeight]
);

const separators = () => {
const renderCentralFrame = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry to nudge you 😬
renderSeparatorsAndLabel or something, make more sense - at least to me, didn't get at first what a central frame is..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
I also changed the screen a bit to make it fit for small screens.
verified on Android as well

@lidord-wix lidord-wix requested a review from mendyEdri April 18, 2021 07:23
@mendyEdri mendyEdri merged commit 47516f2 into master Apr 18, 2021
@lidord-wix lidord-wix deleted the feat/wheelPicker_label branch May 3, 2021 08:11
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