A framework for building native applications using React
Extract the content of the case 'StringTypeAnnotation' into a single … (#34981)
Summary: This PR extracts the content of the codegen case 'String' into a single `emitString` function inside the parsers-primitives.js file and uses it in both Flow and TypeScript parsers as requested on https://github.com/facebook/react-native/issues/34872. This also adds unit tests to the new `emitString` function. ref: https://github.com/facebook/react-native/pull/34936 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Extract the content of the case 'StringTypeAnnotation' into a single emitString function Pull Request resolved: https://github.com/facebook/react-native/pull/34981 Test Plan: Run `yarn jest react-native-codegen` and ensure CI is green Reviewed By: cortinico Differential Revision: D40376836 Pulled By: cipolleschi fbshipit-source-id: feb1b07ec7fc2c333f5054f8cd8d18457d985257
K
Ken Tominaga committed
eda90e5181fc1042cb76023997d2f83e39bb72f2
Parent: 790f40c
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 10/19/2022, 8:38:28 AM