Error: RNSKIA: Could not retrieve drawable from CAMetalLayer
Faced this error while running an ios dev build on mac, Line chart doesn't show up.
same~~
For anyone searching for this error, i was using victory native XL and what fixed it was this:
Non working code `<CartesianChart /* … */ style={{ // 👈 width is a string here height: 300, width: '100%', }}
`
Working code
`<CartesianChart
/* … */
style={{
height: 300,
width: 300,
}}
` When the chart mounts, React Native hasn’t run its layout pass yet, so the Canvas gets width = 0. Skia then asks the underlying CAMetalLayer for a drawable of size 0×300 and Metal refuses, producing that log line. (It’s non-fatal but nothing is drawn.)