-
Couldn't load subscription status.
- Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
When using globalClassNamePolyfill: true, due to the way it works, properties get lost. For example Image has a resolveAssetPath function as a property which gets lost.
Without the polyfill enabled you can do this and it imports the function:
import { resolveAssetPath } from ImageWith the polyfill enabled, it doesn't work anymore (the above returns undefined).
I think the solution might be to do a Object.assign:
export function Image(props: StyledProps<ImageProps, typeof mapping>) {
return useCssElement(RNImage, props, mapping);
}
Object.assign(Image, RNImage)Library version
3.0.0
Environment info
Not relevantSteps to reproduce
See above
Reproducible example repository
Not provided
thedv91
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working