├── .gitignore ├── README.md ├── bun.lockb ├── package.json ├── plopfile.js ├── src ├── babel │ ├── fixtures │ │ ├── only │ │ │ └── .gitkeep │ │ └── text │ │ │ ├── allow-JSXString-children │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ │ │ ├── change-tag │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ │ │ ├── optimizes-inline-styles │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ │ │ ├── skip-components-with-non-JSXString-children │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ │ │ ├── skip-components-with-nondeterministic-props │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ │ │ └── skip-components-with-props-in-denylist │ │ │ ├── code.js │ │ │ ├── options.js │ │ │ └── output.js │ ├── plugin.ts │ ├── text.test.ts │ └── text.ts ├── index.ts ├── plugin.ts ├── react-native-env.d.ts └── runtime │ └── text.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/bun.lockb -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/package.json -------------------------------------------------------------------------------- /plopfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/plopfile.js -------------------------------------------------------------------------------- /src/babel/fixtures/only/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/babel/fixtures/text/allow-JSXString-children/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/allow-JSXString-children/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/allow-JSXString-children/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/allow-JSXString-children/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/allow-JSXString-children/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/allow-JSXString-children/output.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/change-tag/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/change-tag/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/change-tag/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/change-tag/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/change-tag/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/change-tag/output.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/optimizes-inline-styles/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/optimizes-inline-styles/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/optimizes-inline-styles/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/optimizes-inline-styles/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/optimizes-inline-styles/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/optimizes-inline-styles/output.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-non-JSXString-children/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-non-JSXString-children/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-non-JSXString-children/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-non-JSXString-children/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-non-JSXString-children/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-non-JSXString-children/output.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-nondeterministic-props/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-nondeterministic-props/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-nondeterministic-props/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-nondeterministic-props/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-nondeterministic-props/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-nondeterministic-props/output.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-props-in-denylist/code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-props-in-denylist/code.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-props-in-denylist/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-props-in-denylist/options.js -------------------------------------------------------------------------------- /src/babel/fixtures/text/skip-components-with-props-in-denylist/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/fixtures/text/skip-components-with-props-in-denylist/output.js -------------------------------------------------------------------------------- /src/babel/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/plugin.ts -------------------------------------------------------------------------------- /src/babel/text.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/text.test.ts -------------------------------------------------------------------------------- /src/babel/text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/babel/text.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export { flattenTextStyle } from "./runtime/text.js"; 2 | -------------------------------------------------------------------------------- /src/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/plugin.ts -------------------------------------------------------------------------------- /src/react-native-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/react-native-env.d.ts -------------------------------------------------------------------------------- /src/runtime/text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/src/runtime/text.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marklawlor/react-native-optimizer/HEAD/tsconfig.json --------------------------------------------------------------------------------