Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #398 from gluestack/release/@gluestack-style/react…
Browse files Browse the repository at this point in the history
…@0.2.30

Release/@gluestack style/[email protected]
  • Loading branch information
ankit-tailor authored Sep 6, 2023
2 parents df4cfb1 + d6c5fe9 commit 6476e78
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Pressable = styled(
{
bg: '$red500',
p: '$2',

// 'bg': '$red600',
// 'w': 100,
// 'h': 100,
Expand Down
14 changes: 9 additions & 5 deletions example/ui-examples-babel/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ module.exports = function (api) {
{
configPath: path.join(__dirname, './gluestack-ui.config.ts'),
configThemePath: ['theme'],
components: [path.join(__dirname, './gluestack-components')],
styled: [
'@gluestack-style/react',
path.resolve(__dirname, './gluestack-ui-components/core/styled'),
],
components: ['@gluesatck-ui/themed'],
},
],
[
'module-resolver',
{
alias: {
// For development, we want to alias the library to the source
['@gluestack-style/react']: path.join(
__dirname,
'../../packages/react/src'
),
// ['@gluestack-style/react']: path.join(
// __dirname,
// '../../packages/react/src'
// ),
// ['@gluestack-style/animation-plugin']: path.join(
// __dirname,
// '../../packages/animation-plugin/src'
Expand Down
2 changes: 1 addition & 1 deletion packages/animation-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack-style/animation-plugin",
"version": "0.1.8",
"version": "0.1.9",
"description": "A gluestack-style plugin for animation properties, utilizing animation libraries.",
"keywords": [
"react",
Expand Down
2 changes: 2 additions & 0 deletions packages/animation-plugin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ export class AnimationResolver implements IStyledPlugin {
//@ts-ignore
Component.styled.config = styledConfig;

//@ts-ignore
Component.isStyledComponent = true;
Component.displayName = 'StyledComponent';

return Component;
Expand Down
Loading

0 comments on commit 6476e78

Please sign in to comment.