mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 02:31:41 +03:00
Fixed pr comment requirements
This commit is contained in:
parent
cfad357871
commit
dda2c365b5
@ -93,17 +93,12 @@ class PostsView extends Component {
|
||||
let newPosts = [];
|
||||
|
||||
this.setState({ isLoading: true });
|
||||
if ((!filter && tag) || filter === 'feed' || filter === 'blog' || getFor === 'blog') {
|
||||
if (tag || filter === 'feed' || filter === 'blog' || getFor === 'blog') {
|
||||
options = {
|
||||
tag,
|
||||
limit: 3,
|
||||
};
|
||||
} else if (filter == 'reblogs') {
|
||||
options = {
|
||||
tag,
|
||||
limit: 3,
|
||||
};
|
||||
} else if (tag) {
|
||||
} else if (filter === 'reblogs') {
|
||||
options = {
|
||||
tag,
|
||||
limit: 3,
|
||||
|
@ -2,6 +2,7 @@ import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
|
||||
export default EStyleSheet.create({
|
||||
inputWrapper: {
|
||||
marginTop: 20,
|
||||
backgroundColor: '$primaryLightBackground',
|
||||
flexDirection: 'row',
|
||||
height: 44,
|
||||
@ -10,9 +11,6 @@ export default EStyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
marginHorizontal: 16,
|
||||
},
|
||||
safeArea: {
|
||||
marginTop: 20,
|
||||
},
|
||||
icon: {
|
||||
alignSelf: 'center',
|
||||
color: '$iconColor',
|
||||
|
@ -11,13 +11,15 @@ import styles from './searchInputStyles';
|
||||
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
* @prop { func } onChangeText - The function will trigger when input on change
|
||||
* @prop { func } handleOnModalClose - Handle on click method for close button
|
||||
* @prop { string } placeholder - Placeholder for input
|
||||
* @prop { bool } editable - Editable value for input. Default value is true.
|
||||
*/
|
||||
const SearchInputView = ({
|
||||
onChangeText, handleOnModalClose, placeholder, editable = true,
|
||||
}) => (
|
||||
<SafeAreaView style={styles.safeArea}>
|
||||
<View style={styles.inputWrapper}>
|
||||
<SafeAreaView style={styles.inputWrapper}>
|
||||
<Icon style={styles.icon} iconType="FontAwesome" name="search" size={15} />
|
||||
<TextInput
|
||||
style={styles.input}
|
||||
@ -35,7 +37,6 @@ const SearchInputView = ({
|
||||
name="ios-close-circle-outline"
|
||||
onPress={() => handleOnModalClose()}
|
||||
/>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
);
|
||||
|
||||
|
@ -53,6 +53,12 @@ export default EStyleSheet.create({
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
},
|
||||
searchItemImageWrapper: {
|
||||
flex: 1,
|
||||
},
|
||||
searchItemTextWrapper: {
|
||||
flex: 7,
|
||||
},
|
||||
searchItemImage: {
|
||||
width: 40,
|
||||
height: 40,
|
||||
|
@ -59,7 +59,7 @@ class SearchModalView extends PureComponent {
|
||||
renderItem={({ item }) => (
|
||||
<TouchableHighlight onPress={() => handleOnPressListItem(searchResults.type, item)}>
|
||||
<View style={styles.searhItems}>
|
||||
<View style={{ flex: 1 }}>
|
||||
<View style={styles.searchItemImageWrapper}>
|
||||
{item.image && (
|
||||
<FastImage
|
||||
source={{
|
||||
@ -69,7 +69,7 @@ class SearchModalView extends PureComponent {
|
||||
/>
|
||||
)}
|
||||
</View>
|
||||
<View style={{ flex: 7 }}>
|
||||
<View style={styles.searchItemTextWrapper}>
|
||||
{item.text && <Text style={styles.searchItemText}>{item.text}</Text>}
|
||||
</View>
|
||||
</View>
|
||||
|
@ -22,10 +22,9 @@ class SearchResultScreen extends PureComponent {
|
||||
const { intl, tag, navigationGoBack } = this.props;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<View style={styles.container}>
|
||||
<SearchInput
|
||||
onChangeText={text => console.log('text :', text)}
|
||||
onChangeText={() => {}}
|
||||
handleOnModalClose={navigationGoBack}
|
||||
placeholder={tag}
|
||||
editable={false}
|
||||
@ -64,7 +63,6 @@ class SearchResultScreen extends PureComponent {
|
||||
</Fragment> */}
|
||||
</ScrollableTabView>
|
||||
</View>
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user