You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The customCrop ref does not have a crop function and I cannot get the perspective image crop to work. I have console.log of the customCrop ref and the properties are in the attached screenshot below. There is no crop at all. This is the code of the render and crop function. I would appreciate any assistance to get the react-native-perspective-image-cropper to work as intended. My repo can be found at this link: https://github.com/rosenexpend/ScannerImageCropper
The customCrop
ref
does not have a crop function and I cannot get the perspective image crop to work. I haveconsole.log
of thecustomCrop
ref and the properties are in the attached screenshot below. There is no crop at all. This is the code of the render and crop function. I would appreciate any assistance to get thereact-native-perspective-image-cropper
to work as intended. My repo can be found at this link: https://github.com/rosenexpend/ScannerImageCropperfunction crop() { customCrop.crop(); }
return ( <View> <CustomCrop ref={customCrop} updateImage={updateImage} rectangleCoordinates={rectangleCoordinates} initialImage={image} height={DEFAULT_IMAGE_HEIGHT} width={DEFAULT_IMAGE_WIDTH} overlayColor="rgba(18,190,210, 1)" overlayStrokeColor="rgba(20,190,210, 1)" handlerColor="rgba(20,150,160, 1)" enablePanStrict={false} /> <TouchableHighlight style={styles.cropButtonTouchable} onPress={crop}> <View style={styles.cropButton}> <Text style={styles.cropButtonLabel}>Crop</Text> </View> </TouchableHighlight> </View> ); }
The text was updated successfully, but these errors were encountered: