ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.3k stars 150 forks source link

fix(react): Add missing arShadowReceiver prop #285

Closed alexttyip closed 1 month ago

alexttyip commented 3 months ago

According to the documentation for ViroQuad and ViroPolygon, they should have an arShadowReceiver prop to determine if the component should act as a transparent surface and capture any shadows that are cast onto it.

This, however, is missing from the prop types of the two components, which means TypeScript errors when the components are used with that prop.

This PR adds the prop to the prop type definitions of the two components.