Skip to content

Fix/ add webStyle to TextField #2387

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
Jan 1, 2023
Merged

Fix/ add webStyle to TextField #2387

merged 3 commits into from
Jan 1, 2023

Conversation

lidord-wix
Copy link
Contributor

Description

TextField - fix web style

Changelog

TextField - fix web style

@@ -69,6 +68,10 @@ const styles = StyleSheet.create({
textAlignVertical: 'center'
}
})
},
webStyle: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this solve your issue? I believe we meant to get the 'webStyle' to a const outside of the stylesheet, as the stylesheet is typed. You can move it outside the component or create a memorized const as this is not a dynamic style

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it solves the issue (with the ts-expect-error) and keeps the style in the stylesheet so I think it is more readable and clean.

@Inbal-Tish
Copy link
Collaborator

@lidord-wix Approved. Please fix build

@lidord-wix lidord-wix merged commit d6b4abe into master Jan 1, 2023
@lidord-wix lidord-wix deleted the fix/TextField_webStyle branch January 23, 2023 09:04
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