Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Custom Native State #34796

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

Changelog

[General][Added] - Generate custom Native State

Differential Revision: D39816763

Summary:
This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: D39816763

fbshipit-source-id: 7793b0cce27251fcbff57a452f132b587d40bbfd
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Sep 27, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39816763

@react-native-bot react-native-bot added the Type: Enhancement A new feature or enhancement of an existing feature. label Sep 27, 2022
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,727,434 -4
android hermes armeabi-v7a 7,130,323 +0
android hermes x86 8,033,996 +9
android hermes x86_64 8,007,262 -12
android jsc arm64-v8a 9,596,545 -6
android jsc armeabi-v7a 8,362,861 -3
android jsc x86 9,540,789 +14
android jsc x86_64 10,133,166 -23

Base commit: f85e2ec
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: f85e2ec
Branch: main

cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: 0f5cf583f26c8ad63ce98e1cb97b92d14190f1cd
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: 2753722abd0272140c03fc4b8e8313b47649a23a
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: 26b799fcd2265d1c3c7a00fa34586ce010064e66
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: 3f0bfde785b3846c56418d93d7131c27bed505f8
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: 612f13ef3318d1c35fe7d276861c6d9f19e4f5bd
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: c369d4965ce092d081b6b69947f32d01a7bcfeb0
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Oct 9, 2022
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Differential Revision: https://internalfb.com/D39816763

fbshipit-source-id: f9ad9811a918d692b6a94766b52a9810549cdcb7
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in 7490ad4.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 10, 2022
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#34796

This diff introduces the generation of custom native states using basic types as we do with the Props.

To make it work, the custom types are already writte in the Props.h file, therefore the State.h file must import that other file to have access to the required types.

This diff adds and updates the tests for the State.

## Changelog
[General][Added] - Generate custom Native State

Reviewed By: cortinico

Differential Revision: D39816763

fbshipit-source-id: 42d1aa9a6df23145f4a46ae8ccfb43d81fa651fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants