BuilderIO / mitosis

Write components once, run everywhere. Compiles to React, Vue, Qwik, Solid, Angular, Svelte, and more.
https://mitosis.builder.io
MIT License
11.84k stars 512 forks source link

[feat] support `onClick` events in RN with Pressable #1403

Closed sidmohanty11 closed 2 months ago

sidmohanty11 commented 2 months ago

Description

This PR converts any View with onClick event attached to a Pressable and converts the onClick to onPress so that its handled properly inside React Native

Jira https://builder-io.atlassian.net/browse/ENG-5713

Loom https://www.loom.com/share/bf63014d0a6346bb878c8f2f8be50b98

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: aedf7a18bac3aae0ba7058660f475e958568af8b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ----------------------- | ----- | | @builder.io/mitosis | Patch | | @builder.io/mitosis-cli | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mitosis-fiddle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2024 1:59pm
nx-cloud[bot] commented 2 months ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit aedf7a18bac3aae0ba7058660f475e958568af8b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 4 targets - [`nx build @builder.io/mitosis-fiddle`](https://cloud.nx.app/runs/aBjbt4S1ei?utm_source=pull-request&utm_medium=comment) - [`nx run-many --skip-nx-cache --target build --parallel 4 --exclude */e2e-alpine,@builder.io/mitosis-fiddle,@builder.io/talk-*,@builder.io/example-apps`](https://cloud.nx.app/runs/DFuJOEA10e?utm_source=pull-request&utm_medium=comment) - [`nx build @builder.io/eslint-plugin-mitosis`](https://cloud.nx.app/runs/l1RwLKxaCH?utm_source=pull-request&utm_medium=comment) - [`nx build @builder.io/mitosis`](https://cloud.nx.app/runs/0PUlmSUoTN?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.