-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
has: prSubject of a pull requestSubject of a pull requestproject:react-native-webIssue associated with react-native-webIssue associated with react-native-web
Milestone
Description
The problem
Here is what the event looks like on onLoad:
But here is what the documentation tells us:
As you can see, the source attribute is missing.
How to reproduce
Simplified test case: here
Steps to reproduce:
- Create an Image
- Add an onLoad method
- Notice that the event.nativeEvent doesn't include the source attribute
Expected behavior
Environment (include versions). Did this work in previous versions?
- React Native for Web (version): 0.17.6
- React (version): 17.0.2
- Browser: 98.0.2 (64 bits)
Without this event, is there another way to detect the original width/height of the image?
gustavo-bonfim
Metadata
Metadata
Assignees
Labels
has: prSubject of a pull requestSubject of a pull requestproject:react-native-webIssue associated with react-native-webIssue associated with react-native-web

