[Fabric] Unable to load an image inside a custom visual #14269
Labels
Area: Image
bug
Needs: Author Feedback
The issue/PR needs activity from its author (label drives bot activity)
New Architecture
Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
Problem Description
I'm trying to build a custom visual for the fabric architecture using the MovingLight sample. This custom visual will have an image that will be loaded from a custom stream. But I started by checking if I could load the image from a URL:
From the documentation of ReactImage I see that the LoadedImageSurface is being used to load the image, so I thought to use the same sources.
However, when debugging, the app doesn't go beyond StartLoadFromUri, it crashes the app with an abort and doesn't give me any information. I have used the same URI in the React Native button and the app does load the image, so there's something on how the custom components access the WinAppSDK APIs.
Other than the MovingLight sample, I am having a hard time finding examples of custom components for Fabric.
Steps To Reproduce
Expected Results
Not crashing
CLI version
15.0.0
Environment
Community Modules
No response
Target Platform Version
None
Target Device(s)
No response
Visual Studio Version
None
Build Configuration
None
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: