Skip to content

Add example in RNTester to use events with arrays#37143

Closed
cipolleschi wants to merge 3 commits into
facebook:mainfrom
cipolleschi:export-D45357873
Closed

Add example in RNTester to use events with arrays#37143
cipolleschi wants to merge 3 commits into
facebook:mainfrom
cipolleschi:export-D45357873

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary:
This change add an example on how to use events with arrays in the New Architecture in RNTester.

Changelog:

[Internal] - Add Examples on RNTester on how to send events with arrays from Native to JS

Differential Revision: D45357873

@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 Apr 28, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Apr 28, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,639,005 +9,563
android hermes armeabi-v7a 7,949,793 +8,762
android hermes x86 9,126,349 +10,364
android hermes x86_64 8,979,754 +9,461
android jsc arm64-v8a 9,202,924 +9,326
android jsc armeabi-v7a 8,391,166 +8,514
android jsc x86 9,261,617 +10,124
android jsc x86_64 9,518,658 +9,218

Base commit: 1cd0f57
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Riccardo Cipolleschi and others added 3 commits May 4, 2023 02:47
Summary:
This diff introduce support to parse arrays in events.

We support parsing Arrays of:
- Boolean
- Double
- Float
- Int32
- String Enums
- String
- Objects
- Arrays

## Changelog:
[General][Added] - Add generic support for Arrays in Events parsing

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

fbshipit-source-id: 8dbbaf33b3ce2489e3e1b03741a5465012dd05a0
Summary:
This diff adds the generation of Array types in events.

It supports the generation of Array of:
- Boolean
- Int32
- Float
- Double
- String
- Objects
- Array

**Note:** This is a first iteration. We could improve the generation further by leveraging the `Bridging` module within React Native.
I'll take a stab at it in a next diff.

## Changelog:
[General][Added] - Generate events with arrays

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

fbshipit-source-id: c52faab4aa63efcc161b7623146286832a2e3619
Summary:
Pull Request resolved: facebook#37143

This change add an example on how to use events with arrays in the New Architecture in RNTester.

## Changelog:
[Internal] - Add Examples on RNTester on how to send events with arrays from Native to JS

Reviewed By: cortinico

Differential Revision: D45357873

fbshipit-source-id: 9f4a201f180e0e92adf7ac4154509d65642c642e
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 4, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 8c8f7a5.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants