react-native-autocomplete-dropdown
Version:
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
23 lines (20 loc) • 535 B
JavaScript
import React, { memo } from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { withFadeAnimation } from './HOC/withFadeAnimation'
export const NothingFound = memo(({ ...props }) => {
const EL = withFadeAnimation(
() => (
<View style={{ ...styles.container }}>
<Text style={styles.text}>{props.emptyResultText || 'Nothing found'}</Text>
</View>
),
{}
)
return <EL />
})
const styles = StyleSheet.create({
container: {
padding: 10
},
text: { textAlign: 'center' }
})