@umituz/react-native-design-system 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
4
|
TextInput,
|
|
@@ -10,9 +10,7 @@ import { useAppDesignTokens } from '../../theme';
|
|
|
10
10
|
import { AtomicIcon } from '../../atoms/AtomicIcon';
|
|
11
11
|
import type { SearchBarProps } from './types';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
|
|
13
|
+
export const SearchBar: React.FC<SearchBarProps> = ({
|
|
16
14
|
value,
|
|
17
15
|
onChangeText,
|
|
18
16
|
onSubmit,
|
|
@@ -26,7 +24,7 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
|
|
|
26
24
|
containerStyle,
|
|
27
25
|
inputStyle,
|
|
28
26
|
testID,
|
|
29
|
-
}
|
|
27
|
+
}) => {
|
|
30
28
|
const tokens = useAppDesignTokens();
|
|
31
29
|
|
|
32
30
|
const handleClear = () => {
|
|
@@ -60,7 +58,6 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
|
|
|
60
58
|
</View>
|
|
61
59
|
|
|
62
60
|
<TextInput
|
|
63
|
-
ref={ref}
|
|
64
61
|
value={value}
|
|
65
62
|
onChangeText={onChangeText}
|
|
66
63
|
onSubmitEditing={onSubmit}
|
|
@@ -112,9 +109,7 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
|
|
|
112
109
|
)}
|
|
113
110
|
</View>
|
|
114
111
|
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
SearchBar.displayName = 'SearchBar';
|
|
112
|
+
};
|
|
118
113
|
|
|
119
114
|
const styles = StyleSheet.create({
|
|
120
115
|
container: {
|