@umituz/react-native-design-system 2.5.3 → 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",
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, { forwardRef } from 'react';
1
+ import React from 'react';
2
2
  import {
3
3
  View,
4
4
  TextInput,
@@ -10,7 +10,7 @@ import { useAppDesignTokens } from '../../theme';
10
10
  import { AtomicIcon } from '../../atoms/AtomicIcon';
11
11
  import type { SearchBarProps } from './types';
12
12
 
13
- export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, SearchBarProps>(({
13
+ export const SearchBar: React.FC<SearchBarProps> = ({
14
14
  value,
15
15
  onChangeText,
16
16
  onSubmit,
@@ -24,7 +24,7 @@ export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, Search
24
24
  containerStyle,
25
25
  inputStyle,
26
26
  testID,
27
- }, ref) => {
27
+ }) => {
28
28
  const tokens = useAppDesignTokens();
29
29
 
30
30
  const handleClear = () => {
@@ -58,7 +58,6 @@ export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, Search
58
58
  </View>
59
59
 
60
60
  <TextInput
61
- ref={ref}
62
61
  value={value}
63
62
  onChangeText={onChangeText}
64
63
  onSubmitEditing={onSubmit}
@@ -110,9 +109,7 @@ export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, Search
110
109
  )}
111
110
  </View>
112
111
  );
113
- });
114
-
115
- SearchBar.displayName = 'SearchBar';
112
+ };
116
113
 
117
114
  const styles = StyleSheet.create({
118
115
  container: {