Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bertrand committed Dec 6, 2024
1 parent 23d1ac9 commit b784657
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/crossed-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@crossed/demo": "0.3.1",
"@crossed/styled": "workspace:^",
"@crossed/theme": "workspace:2.1.1",
"@crossed/ui": "3.4.0",
"@crossed/ui": "3.4.1",
"@crossed/unicons": "workspace:*",
"@react-native/gradle-plugin": "^0.75.3",
"@react-navigation/native": "^6.0.2",
Expand Down
7 changes: 7 additions & 0 deletions apps/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# crossed-doc

## 0.5.10

### Patch Changes

- Updated dependencies
- @crossed/ui@3.4.1

## 0.5.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/doc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crossed-doc",
"private": true,
"version": "0.5.9",
"version": "0.5.10",
"type": "module",
"scripts": {
"dev": "storybook dev -p 6006",
Expand All @@ -15,7 +15,7 @@
"dependencies": {
"@crossed/styled": "workspace:0.14.3",
"@crossed/theme": "workspace:2.1.1",
"@crossed/ui": "workspace:3.4.0",
"@crossed/ui": "workspace:3.4.1",
"@crossed/unicons": "2.0.1",
"@crossed/webpack": "workspace:2.0.9",
"@gorhom/portal": "^1.0.14",
Expand Down
6 changes: 6 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @crossed/ui

## 3.4.1

### Patch Changes

- remove withDefaultProps from render for box

## 3.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@crossed/ui",
"description": "A universal & performant styling library for React Native, Next.js & React",
"version": "3.4.0",
"version": "3.4.1",
"sideEffects": false,
"keywords": [
"React Native",
Expand Down
14 changes: 9 additions & 5 deletions packages/ui/src/layout/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,14 @@ export const Box: BoxComponent = forwardRef(
[styles]
);
const Comp = useMemo(() => {
return pressable
? withDefaultProps(Pressable, { style: handleStyles })
: withDefaultProps(View, { style: styles.rnw().style });
}, [pressable, styles, handleStyles]);
return <Comp ref={ref} {...(props as any)} />;
return pressable ? Pressable : View;
}, [pressable]);
return (
<Comp
ref={ref}
{...(props as any)}
style={pressable ? handleStyles : styles.rnw().style}
/>
);
}
);
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b784657

Please sign in to comment.