Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Remove "extras" from generated component #109

Merged
merged 9 commits into from
Oct 5, 2018

Conversation

morgandonze
Copy link
Contributor

@morgandonze morgandonze commented Oct 3, 2018

Fixes #91

Demo:

(The word "Tea" is the generated component)
screen shot 2018-10-04 at 2 57 41 pm


return (
<TouchableOpacity style={viewStyle} {...rest}>
<TouchableOpacity style={style} {...rest}>
Copy link
Member

Choose a reason for hiding this comment

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

My inclination is to make this a straight up <View> and lose the extends TouchableOpacityProperties in the props above, but my GAFO is relatively low if others want to keep it.

@morgandonze
Copy link
Contributor Author

@robinheinze I went with your suggestion because my GAFO is zero.

# Conflicts:
#	boilerplate/test/__snapshots__/storyshots.test.ts.snap
@morgandonze morgandonze merged commit 06597ff into master Oct 5, 2018
@morgandonze morgandonze deleted the remove-component-extras branch December 11, 2018 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants