ive tried bringing this up before. Felt like staff tried to shut it down when they mentioned they were unaware (or something like that) of momentjs / Luxon
The crazy part to me is the need for a library like this when building apps. Parsing seconds since 1970 into juman readable time manually sucks. Especially when considering leap years and crossing timezones. Not impossible but takes a lot of work.
Thunkable is built on react native. There is a moment library for react native. The platform could be even more powerful by adding this in. Plus, itās a tiny library so it wouldnāt be a lot of extra weight on the apk/ipa
I hear you @jared but at least we can do such workarounds even though Iām not fan of Web Viewer as it is heavy and too much for such a tiny piece of code.
Yep. I feel the same. Glad itās there but Iād prefer a nicer/more elegant solution. (Like creating our own blocks perhaps and tying in libraries. Ya know, bring back extensions)
Iām sure itās a lot of work but probably not impossible. Even a ārun JavaScriptā block would be nice with the ability to output custom object lists. It be nicer if they could draw elements on the screen but I feel at this point it may be a lot to ask for just a run JavaScript function block.
Do any of you think that (or any part of the above) may be an option in the future? It would make whatās possible now turbocharged to be able to run custom JavaScript let alone paint elements on the screen or better yet, create our own blocks (in RN or JavaScript) and visual elements (already close on this one with figma imports)
Well that is a bummer. It would still be nice to have a more organized way to run these kind of functions. And @jared, a custom block creator would be really cool. I think back to the LEGO MINDSTORMS my blocks.
Since we can Already execute custom JavaScript within the web viewer sending and receiving data back-and-forth. It would be nice to see S bypassed the problem of adding the web you are adding the HTML linking to that HTML and then sending data back-and-forth that way.
It would be nice if we could I have a block that would just run the JavaScript within the block editor somehow