npomfret / react-native-image-tools

Image editing software powered by Abode Creative SDK for iOS and Android.
171 stars 41 forks source link

Disable the slide in from bottom animation #5

Open srameshr opened 7 years ago

srameshr commented 7 years ago

Is there any way to disable the animation of the editor entry? Right now after we call RNImageTools.openEditor it bouncesIn from the bottom. How do we disable it, so that it just appears without any animation?

The SDK Docs says "To launch the editor, create and display an instance of AdobeUXImageEditorViewController. You can present it modally, like so."

How about configuring an option to enable or disable the animation?

- (void)displayEditorForImage:(UIImage *)imageToEdit
{
    AdobeUXImageEditorViewController *editorController = [[AdobeUXImageEditorViewController alloc] initWithImage:imageToEdit];
    [editorController setDelegate:self];
    [self presentViewController:editorController animated:YES completion:nil]; // This line
}
npomfret commented 7 years ago

PR's welcome.