mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
* refactor(INJI-569): changing png to svg images from setup to home screen Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * Refactor(INJI-569): changing png to svg images settings screen Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * [INJI-569] changing png to svg image Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569]: Adjusted all the alignment in settings screen Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * [INJI-569] fix SuccessLogo size and and alignment Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569] refactor theme files and removing unused QrLoginWarning component Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569] changing the naming convention of svg images Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569] fix Typo mistake and remove unused imports Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569] fix Typo mistake, misssing imports and remove unused elements Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> * [INJI-569]: Adjusted all the alignment of icons with tag name in settings screen Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * [INJI-569] renaming the files Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> --------- Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com> Signed-off-by: anil_majji <majjianilkumar050@gmail.com> Co-authored-by: anil_majji <majjianilkumar050@gmail.com>
37 lines
985 B
TypeScript
37 lines
985 B
TypeScript
import React from 'react';
|
|
import {TextInput} from 'react-native';
|
|
import {Icon} from 'react-native-elements';
|
|
import {Row} from './Layout';
|
|
import {Theme} from './styleUtils';
|
|
|
|
export const SearchBar = (props: SearchBarProps) => {
|
|
return (
|
|
<Row style={Theme.SearchBarStyles.searchBarContainer}>
|
|
<Icon
|
|
testID={props.searchIconTestID}
|
|
name="search"
|
|
color={Theme.Colors.Icon}
|
|
size={27}
|
|
style={Theme.SearchBarStyles.searchIcon}
|
|
/>
|
|
<TextInput
|
|
testID={props.searchBarTestID}
|
|
style={Theme.SearchBarStyles.searchBar}
|
|
placeholder={props.placeholder}
|
|
value={props.search}
|
|
onChangeText={searchText => props.onChangeText(searchText)}
|
|
onLayout={props.onLayout}
|
|
/>
|
|
</Row>
|
|
);
|
|
};
|
|
|
|
interface SearchBarProps {
|
|
searchIconTestID: string;
|
|
searchBarTestID: string;
|
|
search: string;
|
|
placeholder: string;
|
|
onChangeText: (searchText: string) => void;
|
|
onLayout: () => void;
|
|
}
|