diff --git a/.changeset/calm-clocks-battle.md b/.changeset/calm-clocks-battle.md new file mode 100644 index 0000000..eb6c8e6 --- /dev/null +++ b/.changeset/calm-clocks-battle.md @@ -0,0 +1,5 @@ +--- +'css-to-react-native': patch +--- + +Refactor transform to avoid accumulator-based object merging. diff --git a/src/index.ts b/src/index.ts index dc6be3b..31c0612 100644 --- a/src/index.ts +++ b/src/index.ts @@ -105,15 +105,20 @@ export const getPropertyName = (propName: string): string => { const transform = ( rules: StyleTuple[], shorthandBlacklist: string[] = [] -): Style => - rules.reduce