add tips to search

This commit is contained in:
feruz 2019-12-02 09:53:06 +02:00
parent 19ffd36faa
commit 94a59ab969
3 changed files with 19 additions and 2 deletions

View File

@ -294,7 +294,7 @@ PODS:
- RSKImageCropper
- RNReanimated (1.3.0):
- React
- RNScreens (1.0.0-alpha.23):
- RNScreens (2.0.0-alpha.15):
- React
- RNSVG (9.11.1):
- React
@ -514,7 +514,7 @@ SPEC CHECKSUMS:
RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4
RNImageCropPicker: bfb3ea9c8622f290532e2fe63f369e0d5a52f597
RNReanimated: 6abbbae2e5e72609d85aabd92a982a94566885f1
RNScreens: f28b48b8345f2f5f39ed6195518291515032a788
RNScreens: 055721f56f831d17a20d84b613dc0ca9a50e3fcd
RNSVG: be27aa7c58819f97399388ae53d7fa0572f32c7f
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
RSKImageCropper: a446db0e8444a036b34f3c43db01b2373baa4b2a

View File

@ -49,6 +49,23 @@ class SearchModalView extends PureComponent {
placeholder={placeholder}
/>
<View style={styles.body}>
{get(searchResults, 'data', []).length < 1 && (
<View style={styles.searchItems}>
<View style={styles.searchItemTextWrapper}>
<Text style={styles.searchItemText} />
<Text style={styles.searchItemText}>
Start typing to find what you are looking for...
</Text>
<Text style={styles.searchItemText} />
<Text style={styles.searchItemText} />
<Text style={styles.searchItemText}>@usernames</Text>
<Text style={styles.searchItemText} />
<Text style={styles.searchItemText}>#tags</Text>
<Text style={styles.searchItemText} />
<Text style={styles.searchItemText}>anything else</Text>
</View>
</View>
)}
<FlatList
data={get(searchResults, 'data', [])}
showsVerticalScrollIndicator={false}