Skip to content

Commit 9bb0c28

Browse files
committed
shadowStyle props is backed again :)
1 parent 3f39764 commit 9bb0c28

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

example/.expo/packager-info.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"devToolsPort": 19002,
3+
"expoServerPort": null,
4+
"packagerPort": null,
5+
"packagerPid": null,
6+
"expoServerNgrokUrl": null,
7+
"packagerNgrokUrl": null,
8+
"ngrokPid": null,
9+
"webpackServerPort": null
10+
}

example/.expo/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hostType": "lan",
3+
"lanType": "ip",
4+
"dev": true,
5+
"minify": false,
6+
"urlRandomness": "82-pv6",
7+
"https": true
8+
}

lib/SearchBar.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface IProps {
1818
iconName: string;
1919
iconType: string;
2020
iconSize: number;
21+
shadowStyle: any;
2122
onPress: Function;
2223
iconColor: string;
2324
fontColor: string;
@@ -58,6 +59,7 @@ export default class SearchBar extends React.Component<IProps, IState> {
5859
autoFocus,
5960
shadowColor,
6061
placeholder,
62+
shadowStyle,
6163
onPressCancel,
6264
iconComponent,
6365
noExtraMargin,
@@ -76,15 +78,15 @@ export default class SearchBar extends React.Component<IProps, IState> {
7678

7779
return (
7880
<TouchableOpacity
79-
onPress={() => {
80-
onPressToFocus ? textInputRef.focus() : onPress();
81-
}}
8281
style={[
8382
styles.center,
8483
container(this.props),
8584
ifIPhoneXHeader(noExtraMargin),
86-
_shadowStyle(shadowColor),
85+
shadowStyle || _shadowStyle(shadowColor),
8786
]}
87+
onPress={() => {
88+
onPressToFocus ? textInputRef.focus() : onPress();
89+
}}
8890
>
8991
<View style={styles.containerGlue}>
9092
<View style={styles.searchStyle}>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-dynamic-search-bar",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Fully customizable and dynamic Search Bar for React Native.",
55
"keywords": [
66
"gradient",

0 commit comments

Comments
 (0)