Skip to content

Conversation

@benvium
Copy link
Contributor

@benvium benvium commented Jun 11, 2017

By default the list will save and restore your last search term via AsyncStorage. This is useful if you have many registered tests, as it saves you from having to type the search term every time you reload.

Saving your last search can be disabled by setting the optional saveSearch prop to false on ComponentViewer. The default is true.

Also added calvium's ESLint configuration, and make the code pass.

Covers #12

@benvium benvium requested a review from pablocarrillo June 11, 2017 12:16
alignItems: 'center',
},
componentWrapper: {
marginHorizontal: 20,
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we didn't want this and instead set the margin on Individual components if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right - thanks. That was accidentally re-added.

return (
<View key={'modal1'} style={[styles.selectedComponentWrapper, this.state.selectedItem && this.state.selectedItem.wrapperStyle]}>
<View
key={'modal1'}
Copy link
Contributor

Choose a reason for hiding this comment

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

We could use here a better name, maybe something like: component-viewer-container-modal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea

Copy link
Contributor

@pablocarrillo pablocarrillo left a comment

Choose a reason for hiding this comment

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

Code looks good to me, couple of suggestions inline. I will try the branch later before approval

@pablocarrillo
Copy link
Contributor

Tested and works as expected, lets bump the version in the package.json and merge:)

@benvium benvium merged commit 33ccf7d into master Jun 12, 2017
@benvium benvium deleted the save_search branch June 12, 2017 07:55
@benvium benvium mentioned this pull request Jun 12, 2017
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.

3 participants