Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mediaType enum is not exported #285

Closed
tgpetrov opened this issue Jul 23, 2019 · 1 comment
Closed

mediaType enum is not exported #285

tgpetrov opened this issue Jul 23, 2019 · 1 comment
Labels

Comments

@tgpetrov
Copy link
Contributor

Make sure to check the demo app(s) for sample usage

Done

Make sure to check the existing issues in this repository

Done

If the demo apps cannot help and there is no issue for your problem, tell us about it

There is a ImagePickerMediaType enum that seems like it can be added to the demo app:

let context = imagepicker.create({ mode: "single", mediaType: imagepicker.ImagePickerMediaType.Image });

However when I run the app, it crashes with Cannot read property 'Image' of undefined

Which platform(s) does your issue occur on?

  • iOS/Android/Both
  • iOS/Android versions any
  • emulator or device. What type of device? both

Please, provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it) 6.0.2
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project) 6.0.0
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project) 6.0.0
  • Plugin(s): (look for the version numbers in the package.json file of your
    project and paste your dependencies and devDependencies here)

Please, tell us how to recreate the issue in as much detail as possible.

Go to demo app and replace this line:

let context = imagepicker.create({ mode: "single" });

with:

let context = imagepicker.create({ mode: "single", mediaType: imagepicker.ImagePickerMediaType.Image });

Run the app and tap the PICK SINGLE button.

expected: app to work same as before change
actual: app crashes

@tgpetrov tgpetrov added the bug label Jul 23, 2019
@tgpetrov tgpetrov mentioned this issue Jul 23, 2019
4 tasks
@zbranzov
Copy link
Contributor

zbranzov commented Aug 1, 2019

The fix is published in [email protected]

@zbranzov zbranzov closed this as completed Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants