NathanaelA / nativescript-dom

NativeScript DOM emulation methods
MIT License
42 stars 23 forks source link

Custom Components #14

Closed mudlabs closed 6 years ago

mudlabs commented 6 years ago

Does it support custom components?

getElementsByTagName(...) doesn't seem to work for custom components.

I'm also using the nativescript-lottie plugin and was trying to select all Lotties by tag name, but I just get undefined.

Other methods like ByClassName work though.

Not sure if this is a bug or by design?

NathanaelA commented 6 years ago

ByTagName should work on custom components; it is generic. However, it is possible that the components tag name is not 'Lottie' but something else...

mudlabs commented 6 years ago

Hi @NathanaelA, Sorry about the late reply, it is working now. You were right, I was passing Lottie but it's LottieView.

Cheers