nativescript-community / ui-drawer

NativeScript plugin that allows you to easily add a side drawer (side menu) to your projects.
https://nativescript-community.github.io/ui-drawer/
Apache License 2.0
24 stars 12 forks source link

Add vue3 support #24

Closed tralves closed 1 year ago

tralves commented 1 year ago

Adds Vue3 support.

It works well. The examples all run. There are some things I couldn't quite understand:

1- It is using the wrapper component src/ui-drawer/vue3/component.ts. The exported methods don't work (they cause an infinite loop). Instead, I am just calling the open and close methods directly on the nativeView (e.g. this.$refs['drawer'].nativeView.open(side);). I have a feeling I saw this happening before in another plugin...

2- For some reason these methods don't work if called from a function registered in setup() or Githubissues.

  • Githubissues is a development platform for aggregating issues.