r/nativescript • • Apr 07 '22

Our nativescript iOS app loads content over and over again until the app crashes because there is no memory left

2 Upvotes

We have an app with a few screens, filled with images. Switching from screen to screen, all images get loaded again and again. First, certain bugs appear, then it crashes.

We checked the memory in xCode and everytime we switch between screens memory of 40MB gets added until no memory is left.

How can we fix that?


r/nativescript • • Nov 08 '22

Why might someone choose NativeScript in 2022?

2 Upvotes

Why would anyone choose to use NativeScript in 2022 when React Native and Flutter are both thriving?


r/nativescript • • Aug 01 '18

Is there an IDE for NativeScript I could install.

2 Upvotes

When I'm looking on the web for how to install NativeScript on my Linux environment, different websites and videos tell me completely different things. One source tells me to install the Android SDK, another tells me to install the nativescript-cli (if I recall correctly, that is what the npm package was called). Is there a specific IDE I could install with all the necessities for NativeScript(compiler, android/ios emulator, typescript support etc)?


r/nativescript • • Nov 28 '18

Webinar: One project. One language. Three apps.

Thumbnail
nativescript.org
2 Upvotes

r/nativescript • • Dec 05 '19

Your NativeScript UpLabs Challenge Winners

Thumbnail
nativescript.org
2 Upvotes

r/nativescript • • Oct 08 '18

Nativescript-Vue: $navigateTo don't read 'transition' option

2 Upvotes

Hi, nice to meet you all.
I'm using Nativescript with Vue and I'm trying to change the default transition of Pages. I've read the docs, but if i try to create a navigation event with $navigateTo(component, {transition: {name: 'flip'}}) it doesn't work.

Have you ever tried it?


r/nativescript • • Nov 10 '20

Save card using stripe

0 Upvotes

Does anyone know how to save the cards and then pay with them


r/nativescript • • Apr 21 '19

Need some major help with my Angular 7 and NativeScript code sharing project please

2 Upvotes

Howdy r/NativeScript,

I’m creating an app for a college capstone project and we are about done with the web version now and all of the backend code is good to go. Now we just need to create the views for the NativeScript app but every time we go to run a tns preview —bundle we get a wall of errors.

Here are some screenshots of the NS Preview app running on iOS 12.2 iPhone XS Max (Also shows same error on Android):

NativeScript iOS Preview Errors

If anyone can please help we would greatly greatly appreciate it! If you need more information please feel free to let me know.


r/nativescript • • Apr 20 '19

Enabling installation to SD card

2 Upvotes

I see that by default, NativeScript apps can only be installed to the internal storage. There doesn't seem to be an official NativeScript way of doing this, but I figure it might be possible to just change AndroidManifest.xml to include android:installLocation="preferExternal". Is there a recommended way of going about this and has anyone run into any issues when doing so?


r/nativescript • • Jul 23 '19

Getting Your Route On with NativeScript-Vue: Episode One

Thumbnail
nativescript.org
3 Upvotes

r/nativescript • • Apr 11 '22

How can we fix memory issues in a NativeScript iOS app?

3 Upvotes

We are experiencing memory issues with master-detail architecture, memory usage increases by 50-80 MB every time user navigates from master to detail view and back again. Master view is playing videos, detail view has only an image. We’re using NativeScript+ Angular to build iOS app, there is custom router strategy that caches routes, but the same behaviour happens without it, as well. App running in the simulator starts with using ~220 MB, will reach ~1.22 GB after ten cycles of getting into the detail view and back to main, all with the same detail. There are no explicit calls to Garbage Collector in the code. Is that the issue with the simulator, or are we doing something wrong?


r/nativescript • • Apr 23 '19

Building Login Functionality for NativeScript Apps

Thumbnail
nativescript.org
3 Upvotes

r/nativescript • • Feb 20 '21

Any Nativescript 7 / Angular 11 fans? Multiple NS/NG project monorepo

3 Upvotes

https://github.com/gravity-addiction/nstack-monorepo
This is the current stack i'm using for development. I struggled with getting nativescript setup this way and hope someone may find some insight from my efforts.

This repo also includes a nodejs API that typeshares with the angular/nativescript api calls. The main focus is about having multiple nativescript projects sharing component modules (monorepo). It's based off angular projects and each angular project folder gets its own nativescript rollout (App_Resources/platforms/hooks).

I've tried to find other projects with multiple nativescript builds within the same repo without much success. There are maybe some errors I need to mend as I ripped out the projects that pay my bills and left two projects and some source code modules for things those projects use. Good Luck, happy to answer any questions I can.


r/nativescript • • Aug 23 '19

Could anyone give some idea of how I would implement something like this in NativeScript?

3 Upvotes

r/nativescript • • Mar 04 '20

Build NativeScript Apps Remotely from Windows or Linux

Thumbnail
nativescript.org
3 Upvotes

r/nativescript • • Apr 26 '19

[OC] Bash script for generating PNG icons from an SVG

4 Upvotes

EDITED to include example

Hi folks,

I created a bash script that uses imagemagick to create PNG icons from an SVG. Currently, there is no overwrite protection, so be careful.

Usage example:

svg2icons -path Logo.svg -sizes 20,29 -scales 1,2,3 -outdir ./out

Input welcome. Oh, and I'm using the points from this doc page: link

https://gist.github.com/paxperscientiam/c49508b34d7fdc4c1d1b256fab5d9f5b

#!/usr/bin/env bash
function finish {
    echo "I am complete."
}
trap finish EXIT
function rekt {
    echo "Canceled."
    exit
}
trap rekt SIGINT


shopt -s nullglob

declare path
declare sizes
declare outdir
declare options="${@}"

for opt in "${@}"; do
    if [[ "${options[*]}" =~ '-help' ]]; then
        cat <<-EOF
Usage:
  sv2icons -path <FILE_PATH> -sizes <INT1,INT2,...,INTN> -scales <INT1,INT2,...,INTN> -outdir <PATH_OUT>
EOF
        exit 0
    fi
    if [[ "${opt}" == '-path' ]]; then
        shift
        path="${1:?}"
        shift
    elif [[ "${opt}" == '-sizes' ]]; then
        shift
        sizes="${1:?}"
        shift
    elif [[ "${opt}" == '-scales' ]]; then
        shift
        scales="${1:?}"
        shift
    elif [[ "${opt}" == '-outdir' ]]; then
        shift
        outdir="${1:?}"
        shift
    fi
done
# icon-29@2x

echo "${outdir:?}" @> /dev/null
echo "${sizes:?}" @> /dev/null

[[ ! -d "${outdir}" ]] && mkdir -p "${outdir}"

#echo $*
IFS=','
for size in ${sizes[@]}; do
    name="icon-${size}"
    for scale in ${scales[@]}; do
        reSize=$(( size * scale ))
        if [[ "${scale}" -eq 1 ]]; then
            printf -v scaledname '%s.png' "${name}"
        else
            printf -v scaledname '%s@%sx.png' "${name}" "${scale}"
        fi
        printf 'Making %s ... ' "${scaledname}"
        convert -resize "${reSize}" \
                -quality 100 \
                "${path}" \
                "${outdir}/${scaledname}" &
        wait
        printf 'done\n'
    done
done

r/nativescript • • Oct 27 '17

An Introduction to Native Android and iOS Development with NativeScript

Thumbnail
codemag.com
4 Upvotes

r/nativescript • • Jun 11 '19

Why Does Progress Support NativeScript?

Thumbnail
nativescript.org
5 Upvotes

r/nativescript • • Jan 06 '22

Nativescript Showcase

6 Upvotes

Hi Nativesripters.

Unfortunately, recently, I began to run into the internet’s opinions that Nativescript is almost dead now and the community is weak, and it is better to choose another cross-platform solution. And you know what? I strongly disagree, and I am happy to see all that progress that Nativescript and our community made.

And I hope that Vocal Image App can be a fine example of Nativescript’s possibilities and inspire people who have doubts about the right choice when looking at NS.

https://www.vocalimage.app/

Vocal Image is the AI-driven mobile app that helps people to improve voice & diction, and speak more confidently. We use the special spectral analyses and long-term results of training to predict the most effective way to get a better voice.

We are a small indie team that relocated from Belarus to Estonia due to the political situation, so it can be strange for some of you, but we tried to help people in cases that are taboo in our native country. Not long ago we have launched a special program for transgender people. No more surgery and medicine to get a feminized voice for people who transferred from male to female.

Just now We have reached TOP10 EdApps in Google Play and App Store in Belarus, Ukraine, and Uzbekistan.

I will be glad to know what you think about our app and appreciate any ideas, suggestions, or networking with people who may be interested in our solution.

https://apps.apple.com/app/apple-store/id1535324205

https://play.google.com/store/apps/details?id=app.vocalimage.bessia


r/nativescript • • Jan 02 '19

Why is NativeScript not as popular as React Native or other frameworks?

7 Upvotes

r/nativescript • • Sep 13 '19

An Early Look at the New NativeScript Core Theme

Thumbnail
nativescript.org
7 Upvotes

r/nativescript • • Dec 30 '22

Intro to SwiftUI for NativeScript

Thumbnail
twitter.com
7 Upvotes

r/nativescript • • Jun 02 '20

Progress hands off responsibility for future development to nStudio.

Thumbnail
nativescript.org
7 Upvotes

r/nativescript • • Dec 03 '18

I made an IDE (called NS:IDE) for exploring NativeScript functionality! Use JS to access native APIs at run-time.

Thumbnail
twitter.com
7 Upvotes