Comments (8)
https://github.com/bthurlow/nativescript-imagecropper/blob/master/demo/app/main-view-model.ts
This demo-code broke when I used that in Angular (only changed some deprecated dependencies), after clicking the button for "takepicture" a second time.
When not cropping, taking the picture worked just fine. I don't have an exact reproduction example, as I kept trying to fix it.
from nativescript-imagecropper.
Update:
v3.0.0 was released now. It matches the Proplugins variant.
Please check the demo app once again to see the proper implementation.
I'm actively using this plugin and have had no issues with it so far.
the setTimeout part here is crucial to make it work on iOS, because the asset won't be immediately ready to be read by the plugin.
I've also added my service implementation to show you how to use it with proper loader and also support image uploading with compression.
hope this helps :)
Cheers!
Shiva <3
from nativescript-imagecropper.
Just run the things inside your .then block in a setTimeout @JWiseCoder
from nativescript-imagecropper.
I did. It still crashes without writing out an error. I even put a delay on each setTimeout, and it still crashed.
from nativescript-imagecropper.
I still haven't found any way to keep it from crashing. It has something to do with how the Activity is being closed. Not sure if it's something inside the uCrop library or something this plugin is doing.
Or could it be something like the native image in the ImageSource is linked to the cached image file on disk, which is getting deleted before it returns? Maybe it's not entirely in memory or something?
from nativescript-imagecropper.
My app crashes when I take another picture with nativescript-camera, after cropping the previous picture. I also tried setTimeouts everywhere, no help there.
Update: It seems I mixed up the angular template with the normal usage, when using the proper angular template, it works fine.
from nativescript-imagecropper.
@Noppey Can you elaborate on that? Do you have an example?
from nativescript-imagecropper.
Ok, after I'm back from holidays, I'll release the pro plugins version of this plugin to this public version. That is stable and I did the support for {N} 6 on it.
In the current public version, it wasn't me who made the upgrade to {N} 6 and as such I haven't been offering support for it lately.
After I release the proplugins verison to public, I'll notify here and from then I'll start supporting this plugin once again.
I understand that this is an important plugin and needs better support.
Expect a stable version to be released on or before Jan 3rd 2020. :)
Cheers
from nativescript-imagecropper.
Related Issues (20)
- "No Page Available for Modal" Error on imageCropper.show() HOT 2
- Make test cases to cover different modals and other view scenarios
- Not working when used with camera plugin HOT 1
- Freezing App HOT 16
- Not working on iOS 12.2 With Nativescript 6.1.1 HOT 3
- Not working on Android API 29 With Nativescript 6.1.1 HOT 4
- Not working on iOS 13.1.2 With Nativescript 6.1.1 HOT 7
- error: attribute android:requestLegacyExternalStorage not found. HOT 9
- Plugin throws and error after upgrading tns to 6.1.2 HOT 6
- OptionsAndroid issue HOT 2
- Crashes on Android 4.4 HOT 7
- Not showing on IOS 13.3 HOT 16
- How to send image use nativescript-background-http ? HOT 1
- Right-hand side of 'instanceof' is not an object HOT 1
- When i try to use this with image picker the code run fine on android 9 but and in android 10 the source is empty. HOT 2
- UI Working but NO Image HOT 11
- "NativeClass is not defined" error on iOS 14 and NS 7 HOT 2
- Crashes when width/height options set on iOS HOT 1
- Cropped Image passing to other API - issues
- When is coming new version for N 7 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-imagecropper.