mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3f17c8b5f0
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44521 changelog: [internal] mapbuffer leaks into every component even though it is only used by 2: Paragraph and TextInput. Let's isolate it only to those two. To do that, I added a new template prop: usesMapBufferForStateData. It is false by default and only Paragraph and TextInput set it to true. Reviewed By: christophpurrer Differential Revision: D56636011 fbshipit-source-id: 4a99e6e68caaf40111b6b7b205854a71f33c5864
@react-native/codegen
Installation
yarn add --dev @react-native/codegen
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/react-native-codegen.