INNER CODE UNIT · TypeScript
wrappedRender
tachyons-css/react-native-style-tachyons · src/reactWrapper.ts:27
return function wrappedRender(...args: any[]) {
/* disable no-invalid-this */
return ReactWrapper.recursiveStyle(func.apply(func, args))
}
}
const WrappedComponent = componentOrFunction
const newClass = class extends WrappedComponent {
render(): any {
return ReactWrapper.recursiveStyle(super.render())
}
}
/* Fix name */
newClass.displayName = WrappedComponent.displayName ?? WrappedComponent.name
/* Mark the class as wrapped by tachyons */
newClass.isTachyonsWrapped = true