Skip to content

Commit 6271870

Browse files
authored
Merge pull request #219 from DogusErdem/feat/packages-updates
feat: Packages updated.
2 parents aa1d067 + 0194b6f commit 6271870

5 files changed

Lines changed: 1040 additions & 1012 deletions

File tree

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"@testing-library/jest-native": "^5.4.3",
5454
"@testing-library/react-native": "^12.2.2",
5555
"@types/lodash.merge": "^4.6.9",
56-
"@types/react": "~18.2.48",
57-
"@types/react-dom": "^18.0.9",
58-
"@types/react-native": "^0.71.5",
56+
"@types/react": "~18.3.3",
57+
"@types/react-dom": "^18.3.3",
58+
"@types/react-native": "^0.75.1",
5959
"@typescript-eslint/eslint-plugin": "^5.40.0",
6060
"@typescript-eslint/parser": "^5.40.0",
6161
"commitlint": "^17.0.2",
@@ -70,13 +70,12 @@
7070
"jest": "^29.6.4",
7171
"pod-install": "^0.1.0",
7272
"prettier": "^2.0.5",
73-
"react": "18.1.0",
74-
"react-native": "0.70.6",
75-
"react-native-builder-bob": "^0.18.3",
73+
"react": "18.3.0",
74+
"react-native": "0.75.1",
75+
"react-native-builder-bob": "^0.29.1",
7676
"react-native-gesture-handler": ">=2.5.0",
7777
"react-native-safe-area-context": "^4.10.8",
7878
"react-native-reanimated": ">=3.0.0",
79-
"react-test-renderer": "^18.2.0",
8079
"release-it": "^15.0.0",
8180
"typescript": "^5.2.2"
8281
},

src/components/Dropdown/Dropdown.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const Dropdown: FCCWD<DrowdownProps> = (
6666
const componentStatus = disabled ? 'disabled' : (visible ? 'active' : 'default');
6767

6868
const openAnimation = useSharedValue(0);
69-
const dropdown = useRef<TouchableOpacity>(null);
69+
const dropdown = useRef<View>(null);
7070

7171
const rightElement = useMemo(() => (typeof right === 'function' ? right(visible) : right), [visible, right]);
7272

@@ -112,7 +112,8 @@ const Dropdown: FCCWD<DrowdownProps> = (
112112
paddingHorizontal: sizes[size].paddingHorizontal,
113113
},
114114
sizes[size].typography, buttonTextStyle, {
115-
color: componentTheme[disabled ? componentStatus : isObjectSelected ? 'selected' : componentStatus]?.label,
115+
color: componentTheme[disabled ? componentStatus :
116+
isObjectSelected ? 'selected' : componentStatus]?.label,
116117
}]}
117118
>
118119
{isObjectSelected ? displayedButtonValue?.(selectedObject) : (buttonTitle || 'Please Select')}

src/components/Dropdown/MultipleSelectDropdown.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const MultipleDropdown: FCCWD<MultipleDropdownProps> = (
5353
);
5454

5555
const componentStatus = disabled ? 'disabled' : (visible ? 'active' : 'default');
56-
const dropdown = useRef<TouchableOpacity>(null);
56+
const dropdown = useRef<View>(null);
5757
const dropdownAnimation = useAnimatedStyle(() => ({
5858
transform: [{ rotate: `${openAnimation.value * 180}deg` }],
5959
}), []);
@@ -84,7 +84,6 @@ const MultipleDropdown: FCCWD<MultipleDropdownProps> = (
8484
const selectedObjectsTemp = [...selectedObjects];
8585

8686
const valueIndex = selectedObjectsTemp.findIndex(obj => displayedRowValue(obj) === displayedRowValue(value));
87-
console.log(valueIndex);
8887

8988
if (valueIndex > -1) {
9089
selectedObjectsTemp.splice(valueIndex, 1);

src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FC, PropsWithChildren } from 'react';
22
import type React from 'react';
3-
import type { Animated, FlatList, ImageSourcePropType,
3+
import type { Animated, DimensionValue, FlatList, ImageSourcePropType,
44
StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from 'react-native';
55
import { Swipeable } from 'react-native-gesture-handler';
66
import type { defaultTypography } from './core/typography/typography';
@@ -314,7 +314,7 @@ export type DividerProps = {
314314
/**
315315
*Width of divider
316316
*/
317-
width?: number,
317+
width?: DimensionValue,
318318
/**
319319
*Additional styles to apply to the divider.
320320
*/
@@ -437,7 +437,7 @@ export type MultipleDropdownProps = DrowdownProps & {
437437
*The theme to use for the component
438438
*/
439439
theme?: DeepPartial<(ComponentThemeType['multipleDropdown'])>
440-
}
440+
}
441441
export type DrowdownRouteProps= MultipleDropdownProps& {
442442
/**
443443
* Determines whether the dropdown should allow multiple selections. Defaults to false

0 commit comments

Comments
 (0)