isCompositeComponentWithTypeV2 function

bool isCompositeComponentWithTypeV2(
  1. dynamic instance,
  2. ReactComponentFactoryProxy componentFactory
)

Returns true if instance is a custom composite component created using React.createClass() that is of the ReactComponentFactoryProxy.type of the provided componentFactory.

Implementation

bool isCompositeComponentWithTypeV2(/* [1] */ instance, ReactComponentFactoryProxy componentFactory) {
  return _isCompositeComponentWithType(instance, getComponentTypeV2(componentFactory));
}