How to implement an SVG image support in Svelte Native App - user-interface

For the moment I work with the Svelte framework and have reached the point to create an app by the use of Svelte Native which is a mix of Svelte and Nativescript. Both of them does not support SVG images to be used directly, however it is possible to use plugins/packages for different frameworks like Vue and React, or for plain Nativescript itself. There is no any official SVG support for Svelte Native, but I suppose, it can be done.
To implement SVG images I have already tried many Svelte packages like svelte-inline-svg, svelte-svg etc. I have also tried to register in app.ts and use nativescript plugins such as nativescript-svg, ui-svg and so on, but still no response. The only really working solution found from other repositories is to transfer SVG to PNG on the building stage. I hope I will find a smart coder who has already managed this and will share the experiance.

Related

Is there a point using Vuetify or should I just be using TailwindCSS or another library?

I stumbled on a web app project that was using ElementUI and spent most of the year updating dependencies. Ended up installing PostCSS and rebuilding the admin Panel how I wanted it to look and feel. It way recently decided to install Vuetify as the UI components are more modern looking and they use tailwind.
Whilst it has given some dated UI components a better feel. I still find myself reskinning and re theming. In some cases building my own transitions or adding new effects.
I hate using apps that have a repetitive UI.
My question is is there any point using Vuetify as at times I find myself battling with their "skin" and using a ton of CSS !important - which doesn't seem like good practice.
Sometimes I see UI or /UX design, and I think it looks cool, but I don't always want the whole thing. I'm the only one on the team that has been fond of tackling the CSS.

Does polymer has some official animation components like neon-animation which now has been deprecated?

webcomponents info
My project developed with polymer.I just find neon-animation component has been deprecated.Some alternative components are available ?
Although neon-animation has been deprecated, it will still be around for some time. However, Polymer's mission has always been "use the platform", and as such, for new Projects it is recommended to use what the platform has to offer in terms of animations.
If you're creating a new element from scratch, we recommend using CSS
keyframe animations, CSS transitions, or the Web Animations API.
You can read the update on neon-animations here.

Import ReactNative libraries into a NativeScript application

I have some Android development experience along with React.js. I'm working on a new mobile project and I haven't been sold entirely on either framework yet.
I'm thinking about using the NativeScript framework for its maturity and because it has more libraries with the functionality that I need but I'd like to design my views in a manner similar to ReactJS. I know I could write my own modules for ReactNative but that would require then I'd have to write modules for both Android and iOS. I'd like to avoid that if I could.
I was thinking about importing the necessary ReactNative libraries into a NativeScript project and then being able to write views in a way similar to ReactNative but still using NativeScript.
Is this doable?
Not sure about your exact question. I did just see an integration between Preact and NativeScript you may be interested in. Take a look here: https://github.com/staydecent/nativescript-preact
I believe that repo is in the early stages, but if enough people want something similar, it'll get worked on faster.
Using React Native in NativeScript is not the right approach, either of it are not built to work together and wouldn't work due to architectural reasons. Here is an NativeScript official comparison of these two.
Both are built for solving same problem (building native apps using JS, without webview hybrid app approach) by trans-compiling XML based view layer(which both these framework has its own syntax and so cant be shared) to build Native UI.
Said that view layer has its own syntax for both and cant be shared, model and controller layer cant be shared as well, due to the fact that NativeScript has few things packed as part of the application package, like JavaScript runtime, c++ and Java API layer which helps in exposing all the Native API without the need for any explicit native API wrapper we have in ReactNative.
React Native have platform specific UI components as well as hardware capabilities, which is not the case with NativeScript. Offcouse, that comes with the cost of a fatter app package size(50+MB) compared to <10MB for ReactNative. More on ReactNative vs NativeScript comparison here.

How to use blueprintjs without Typescript?

I am new to React and I just stumbled to amazing Blueprint components. However, I am unable to use it and I am confused by the installation guide. Its quite different from what I am used so far.
Can anyone explain me how to use Blueprint without Typescript?
You can simply ignore the Typescript parts. Since you are writing a React app, it needs to be compiled through Babel anyways.
I never used Typescript before and also just started to use blueprint a few days ago and was able to use the JSX components completely without any Typescript knowledge.
Just start using it like any other React components you write - or use DIVs with the blueprint CSS classes directly when necessary. Its up to you.

Looking for guidance in using standard Polymer Core and Paper components (and associated events) in Dart Editor

First of all many thanks for the incredible source of information that you are providing to people like me.
I am visiting this site very often and most often finding the answer I need, but this is this is the first time I post a question, so please accept my apologies if I don't fully conform to rules.
Here is my issue:
I am "playing" with Dart Editor and Polymer to try to understand if I could use these technologies in my job moving forward
I was able to import the Polymer Core and Paper components in Dart Editor and to install polymer.dart
I was able to create a simple web page with a "core-selector" and to add some Dart code to handle a click on this component
I can't find how to listen using Dart code for component-specific event ("core-activate" & "core-select" here) and how to read component-specific attributes ("selected" & "multi" here)
I don't seem to be able to find good examples showing how to use "standard" polymer components in a web app created Dart Editor
I could find material on how to create my own polymer components using polymer.dart but I would just like to use standard components
I understand both Polymer and Dart are young but I can't imagine the clever brains at Google not having a solution or plans on this.
Regards and many thanks again.
Sebastien
The problem is not that Polymer and Dart are young. Dart is quite mature, Polymer is not even beta but also not so young anymore. The problem are the core- and paper-elements. They are very new and developed in JavaScript and the Polymer.dart team just created a code generator that wraps the JS core- and paper-elements in Polymer.dart elements. This process is only available since a few days and there are several issues which are yet to be solved.
I think you should provide a concrete example in your question of what you can't get working. Basically Polymer.dart core- and paper-elements work exactly as other Polymer.dart elements. So it's hard to know what to explain.

Resources