@openpeepshq/rn-components 0.6.5 → 0.6.6
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": "@openpeepshq/rn-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "React Native community screens and shared UI (extracted from the Black Ambition app) for the OpenPeeps stack.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Pressable
|
|
3
|
+
import { Pressable } from 'react-native';
|
|
4
4
|
import { TextClassContext } from './themed-text';
|
|
5
5
|
import { cn } from '../../lib/utils';
|
|
6
6
|
import { useThemeBorderRadius } from '../../theme/OpenPeepsThemeProvider';
|
|
@@ -85,7 +85,11 @@ const Button = React.forwardRef<
|
|
|
85
85
|
)}
|
|
86
86
|
ref={ref}
|
|
87
87
|
role="button"
|
|
88
|
-
style={
|
|
88
|
+
style={
|
|
89
|
+
typeof style === 'function'
|
|
90
|
+
? (s: { pressed: boolean }) => [{ borderRadius }, style(s)]
|
|
91
|
+
: [{ borderRadius }, style]
|
|
92
|
+
}
|
|
89
93
|
{...props}
|
|
90
94
|
/>
|
|
91
95
|
</TextClassContext.Provider>
|