From f47fe169da60ffd16669c0564e36c3370cd8556c Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 3 Jan 2019 17:57:34 +0300 Subject: [PATCH] fixed search bar issues --- .../view/placeHolder/postCardPlaceHolderStyles.js | 1 - .../view/placeHolder/profileSummaryPlaceHolderStyles.js | 1 - src/components/searchModal/view/searchModalStyles.js | 1 + src/components/searchModal/view/searchModalView.js | 4 ++-- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js b/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js index ba4c2e45f..b71210dea 100644 --- a/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js +++ b/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js @@ -8,7 +8,6 @@ export default EStyleSheet.create({ borderWidth: 1, borderTopWidth: 1, borderColor: '$primaryLightBackground', - borderRadius: 5, marginRight: 0, marginLeft: 0, marginTop: 10, diff --git a/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js b/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js index fb1369c58..e6b711024 100644 --- a/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js +++ b/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js @@ -8,7 +8,6 @@ export default EStyleSheet.create({ borderWidth: 1, borderTopWidth: 1, borderColor: '$primaryLightBackground', - borderRadius: 5, marginRight: 0, marginLeft: 0, marginTop: 10, diff --git a/src/components/searchModal/view/searchModalStyles.js b/src/components/searchModal/view/searchModalStyles.js index 39755063b..4fd577a23 100644 --- a/src/components/searchModal/view/searchModalStyles.js +++ b/src/components/searchModal/view/searchModalStyles.js @@ -29,6 +29,7 @@ export default EStyleSheet.create({ fontSize: 14, flexGrow: 1, padding: 7, + maxWidth: '$deviceWidth - 100', }, closeIconButton: { width: 20, diff --git a/src/components/searchModal/view/searchModalView.js b/src/components/searchModal/view/searchModalView.js index fbd4b4901..379385cc8 100644 --- a/src/components/searchModal/view/searchModalView.js +++ b/src/components/searchModal/view/searchModalView.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { - View, Text, TextInput, FlatList, TouchableHighlight, SafeAreaView, + View, Text, FlatList, TouchableHighlight, SafeAreaView, } from 'react-native'; import FastImage from 'react-native-fast-image'; @@ -10,7 +10,7 @@ import FastImage from 'react-native-fast-image'; import { Icon } from '../../icon'; import { IconButton } from '../../iconButton'; import { Modal } from '../..'; - +import { TextInput } from '../../textInput'; // Styles // eslint-disable-next-line import styles from './searchModalStyles';