Skip to content

Conversation

elicwhite
Copy link
Member

Dependent on #17323 to make event.currentTarget an instance instead of a reactTag.

I tested this in RNTester in React Native ensuring that Touchable and Pressable correctly handle the updated currentTarget. I have found no other internal callsite referencing this value.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 11, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a6ad34c:

Sandbox Source
distracted-matsumoto-k9pf0 Configuration

@sizebot
Copy link

sizebot commented Nov 11, 2019

Details of bundled changes.

Comparing: 2c6ea0b...a6ad34c

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFabric-prod.js 🔺+0.1% 🔺+0.1% 269.09 KB 269.27 KB 46.01 KB 46.04 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% 0.0% 748.69 KB 749.07 KB 158.35 KB 158.41 KB RN_OSS_DEV
ReactFabric-profiling.js +0.1% +0.1% 279.22 KB 279.4 KB 47.89 KB 47.91 KB RN_FB_PROFILING
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 277.37 KB 277.63 KB 47.43 KB 47.47 KB RN_FB_PROD
ReactNativeRenderer-profiling.js +0.1% +0.1% 286.33 KB 286.58 KB 49.15 KB 49.19 KB RN_FB_PROFILING
ReactFabric-dev.js 0.0% 0.0% 754.23 KB 754.47 KB 159.18 KB 159.24 KB RN_OSS_DEV
ReactFabric-profiling.js 0.0% -0.0% 279.05 KB 279.05 KB 47.83 KB 47.83 KB RN_OSS_PROFILING
ReactFabric-dev.js 0.0% 0.0% 754.41 KB 754.65 KB 159.26 KB 159.32 KB RN_FB_DEV
ReactNativeRenderer-prod.js 0.0% 0.0% 277.23 KB 277.23 KB 47.38 KB 47.39 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 286.19 KB 286.19 KB 49.1 KB 49.11 KB RN_OSS_PROFILING
ReactNativeRenderer-dev.js +0.1% 0.0% 748.86 KB 749.25 KB 158.43 KB 158.49 KB RN_FB_DEV

Size changes (experimental)

Generated by 🚫 dangerJS against a6ad34c

@sizebot
Copy link

sizebot commented Nov 11, 2019

Details of bundled changes.

Comparing: 2c6ea0b...a6ad34c

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% 0.0% 748.85 KB 749.23 KB 158.42 KB 158.49 KB RN_FB_DEV
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 277.36 KB 277.61 KB 47.42 KB 47.46 KB RN_FB_PROD
ReactNativeRenderer-profiling.js +0.1% +0.1% 286.32 KB 286.57 KB 49.14 KB 49.18 KB RN_FB_PROFILING
ReactFabric-dev.js 0.0% 0.0% 754.4 KB 754.64 KB 159.25 KB 159.32 KB RN_FB_DEV
ReactFabric-prod.js 🔺+0.1% 🔺+0.1% 269.07 KB 269.25 KB 46 KB 46.03 KB RN_FB_PROD
ReactFabric-profiling.js +0.1% +0.1% 279.21 KB 279.39 KB 47.88 KB 47.9 KB RN_FB_PROFILING
ReactNativeRenderer-dev.js +0.1% 0.0% 748.68 KB 749.06 KB 158.34 KB 158.4 KB RN_OSS_DEV
ReactNativeRenderer-prod.js 0.0% 0.0% 277.21 KB 277.22 KB 47.37 KB 47.38 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 286.17 KB 286.18 KB 49.09 KB 49.1 KB RN_OSS_PROFILING
ReactFabric-dev.js 0.0% 0.0% 754.21 KB 754.46 KB 159.17 KB 159.23 KB RN_OSS_DEV
ReactFabric-profiling.js 0.0% -0.0% 279.04 KB 279.04 KB 47.83 KB 47.82 KB RN_OSS_PROFILING

Size changes (stable)

Generated by 🚫 dangerJS against a6ad34c

@elicwhite elicwhite force-pushed the native-event-currenttarget branch from bbc0990 to a6ad34c Compare November 11, 2019 19:40
@elicwhite elicwhite merged commit 3dcec3a into facebook:master Nov 11, 2019
@elicwhite elicwhite deleted the native-event-currenttarget branch November 11, 2019 22:00
elicwhite added a commit to elicwhite/react that referenced this pull request Dec 19, 2019
…et (facebook#17345)

* [Native] Add FeatureFlag to dispatch events with instance targets

* Prettier

* [Native] Change currentTarget to be an instance behind a flag 2/2
elicwhite added a commit to elicwhite/react that referenced this pull request Jan 8, 2020
…et (facebook#17345)

* [Native] Add FeatureFlag to dispatch events with instance targets

* Prettier

* [Native] Change currentTarget to be an instance behind a flag 2/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants