-
Notifications
You must be signed in to change notification settings - Fork 4
Save and restore last search term via AsyncStorage
#13
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
Conversation
src/DebugSceneList.js
Outdated
| alignItems: 'center', | ||
| }, | ||
| componentWrapper: { | ||
| marginHorizontal: 20, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
src/DebugSceneList.js
Outdated
| return ( | ||
| <View key={'modal1'} style={[styles.selectedComponentWrapper, this.state.selectedItem && this.state.selectedItem.wrapperStyle]}> | ||
| <View | ||
| key={'modal1'} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
pablocarrillo
left a comment
There was a problem hiding this 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
|
Tested and works as expected, lets bump the version in the package.json and merge:) |
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
saveSearchprop tofalseonComponentViewer. The default istrue.Also added calvium's ESLint configuration, and make the code pass.
Covers #12