nativescript / sample-groceries Goto Github PK
View Code? Open in Web Editor NEW:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists
License: Apache License 2.0
:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists
License: Apache License 2.0
I need to find a good plugin for allowing users to login with Facebook.
See https://travis-ci.org/NativeScript/sample-Groceries/builds/112147263
@ligaz: Any idea what’s going on here? Looks like the Android build worked, but that something timed out before the emulator started up. I’ll try a few more commits to see if this is just a fluke.
iOS and Android each have native share icons and Groceries should use them. Waiting on NativeScript/NativeScript#364 so we can do this without it being too messy.
I use Android 6 and app shows alerts with no texts inside it when I run It for first time. I downloaded the app from Google play or when I try to sign in with invalid email or password. Sometimes app crash.
Once NativeScript/NativeScript#713 lands in 1.4, add returnKeyType="done"
to the grocery <TextField>
and handle the new event.
SmarpShare put their icon in the ActionBar and it looks really nice. We should do that for Groceries.
This feature could be a good way to show off the UI for NativeScript SideDrawer.
Following the docs over at http://tinyurl.com/oe7yz5k
API fails to remember email/password.
Unable to get tj's sample email/password working - alerted that account not found.
Downloaded the .zip folder of groceries master then ran 'tns-install', made sure the platform was added, and then 'tns build android'. All went great and I installed the .apk. Everytime I have a successful login it crashes, it has crashed on a device and through appetize.io. The forgot password works as I just received my email.
I've debugged all of the login.js and it gets to the navigate("views/list/list") and crashes everytime. With @tjvantoll credentials and an account I've created.
Just tried a fresh clone and the tns_modules aren't pulling down. Even tried a second time running 'tns install' and that didn't resolve issue. I had to manually copy them from an older clone.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processNativescriptfloatingactionbuttonNativescript-
telerik-uiDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build
-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 11.392 secs
Command C:\xampp\htdocs\nativeScript\test\platforms\android\gradlew.bat failed w
ith exit code 1
how to solve this problem?
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.groceries/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed
TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39
StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2448)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
at android.app.ActivityThread.access$1200(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5595)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: com.tns.NativeScriptException:
Calling js method onCreate failed
TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39
StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40
at com.tns.Platform.callJSMethodNative(Native Method)
at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:812)
at com.tns.Platform.callJSMethod(Platform.java:711)
at com.tns.Platform.callJSMethod(Platform.java:690)
at com.tns.Platform.callJSMethod(Platform.java:680)
at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:1574)
at android.app.Activity.performCreate(Activity.java:6100)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
... 10 more
It would be nice to showcase @jbristowe's sound plugin. A pull to refresh sounds would be a nice start.
This would be a nice addition for the login and register pages.
Following the README.md steps, the app starts with no ListView:
package.json:
vchimevmac:sample-Groceries vchimev$ cat package.json
{
"name": "Groceries",
"version": "2.1.1",
"description": "A NativeScript-built iOS and Android app for managing grocery lists",
"repository": {
"type": "git",
"url": "https://github.com/nativescript/sample-Groceries.git"
},
"keywords": [
"NativeScript"
],
"author": "TJ VanToll <[email protected]> (http://tjvantoll.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/nativescript/sample-Groceries/issues"
},
"homepage": "https://github.com/nativescript/sample-Groceries/groceries",
"devDependencies": {
"chai": "^3.4.1",
"jscs": "^2.10.1",
"jshint": "^2.8.0",
"karma": "^0.13.15",
"karma-chai": "^0.1.0",
"karma-mocha": "^0.2.1",
"karma-mocha-reporter": "^1.1.5",
"karma-nativescript-launcher": "^0.3.1",
"mocha": "^2.3.4"
},
"nativescript": {
"id": "com.tjvantoll.sampleGroceries",
"tns-ios": {
"version": "1.6.0"
},
"tns-android": {
"version": "1.6.2"
}
},
"dependencies": {
"email-validator": "^1.0.3",
"nativescript-iqkeyboardmanager": "^1.0.0",
"nativescript-social-share": "^1.1.2",
"nativescript-floatingactionbutton": "^0.1.9",
"nativescript-telerik-ui": "0.2.4",
"nativescript-unit-test-runner": "^0.2.8",
"tns-core-modules": "1.6.2"
},
"scripts": {
"lint:jscs": "jscs app",
"lint:jshint": "jshint app",
"lint": "npm run lint:jshint && npm run lint:jscs"
}
var config = require("../../shared/config");
var fetchModule = require("fetch");
var observableArrayModule = require("data/observable-array");
function GroceryListViewModel(items) {
var viewModel = new observableArrayModule.ObservableArray(items);
viewModel.load = function() {
return fetch(config.apiUrl + "Groceries", {
headers:{
"Authorization" : "Bearer" + config.token
}
})
.then(handleErrors)
.then(function(response) {
return response.json();
})
.then(function(data){
data.Result.forEach(function(grocery){
viewModel.push({
name: grocery.Name,
id: grocery.Id
});
});
});
};
viewModel.empty = function () {
while (viewModel.length) {
viewModel.pop();
}
};
viewModel.add = function () {
return fetchModule.fetch(config.apiUrl + "Groceries", {
method: "POST",
body: JSON.stringify({
Name:grocery //error reference
}),
headers: {
"Authorization" : "Bearer" + config.token,
"Content-Type" : "application/json"
}
})
.then(handleErrors)
.then(function(response){
return response.json();
})
.then(function(data){
viewModel.push({
name:grocery,
id:data.Result.Id
});
});
};
return viewModel;
}
function handleErrors(response) {
if (!response.ok) {
console.log(JSON.stringify(response));
throw Error(response.statusText);
}
return response;
}
module.exports = GroceryListViewModel;
I'm not able to run this app on an Android device running 4.4.4. It simply crashes as soon as you launch it. Any changes suggested here than can make this app run on older Android versions too?
After I press login I'm getting the following error:
So something with the extend
function?
My setup
Windows 10 x64 TNS version 1.5.0 Emulator Genymotion with Google Nexus 5 API 21
Commit that i have checked out 4eceee9
Logcat
I/TNS.Native( 2782): NativeScript Runtime Version 1.5.0, commit 4fb83e3c9c8b4dbf39e214c6a90a070f9240378c D/TNS.Native( 2782): JNI_ONLoad D/TNS.Native( 2782): JNI_ONLoad END D/TNS.Native( 2782): lenNodes=63720, lenNames=658711, lenValues=5640069 D/TNS.Native( 2782): time=14 E/TNS.Native( 2782): TypeError: Cannot read property 'extend' of undefined E/TNS.Native( 2782): File: "/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js, line: 52, column: 11 E/TNS.Native( 2782): StackTrace: E/TNS.Native( 2782): Frame: function:'__extends', file:'/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js', line: 52, column: 12 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js', line: 20, column: 5 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js', line: 70, column: 3 E/TNS.Native( 2782): Frame: function:'require', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 2, column: 322 E/TNS.Native( 2782): Frame: function:'getComponentModule', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 40, column: 26 E/TNS.Native( 2782): Frame: function:'loadCustomComponent', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 166, column: 35 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 88, column: 39 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 135, column: 13 E/TNS.Native( 2782): Frame: function:'EasySAXParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js', line: 720, column: 23 E/TNS.Native( 2782): Frame: function:'XmlParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 182, column: 22 E/TNS.Native( 2782): Frame: function:'parseInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 139, column: 19 E/TNS.Native( 2782): Frame: function:'loadInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 210, column: 27 E/TNS.Native( 2782): Frame: function:'load', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 194, column: 27 E/TNS.Native( 2782): Frame: function:'pageFromBuilder', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 87, column: 27 E/TNS.Native( 2782): Frame: function:'resolvePageFromEntry', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 68, column: 20 E/TNS.Native( 2782): Frame: function:'Frame.navigate', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 126, column: 20 E/TNS.Native( 2782): Frame: function:'AndroidApplication.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 143, column: 26 E/TNS.Native( 2782): Frame: function:'app.init.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 114, column: 32 E/TNS.Native( 2782): Error: Cannot create module /data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview. TypeError: Cannot read property 'extend' of undefined. StackTrace: TypeError: Cannot read property 'extend' of undefined E/TNS.Native( 2782): at __extends (/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js:54:12) E/TNS.Native( 2782): at /data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js:22:5 E/TNS.Native( 2782): at Object. (/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js:72:3) E/TNS.Native( 2782): at require (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js:2:322) E/TNS.Native( 2782): at Object.getComponentModule (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js:42:26) E/TNS.Native( 2782): at loadCustomComponent (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js:168:35) E/TNS.Native( 2782): at /data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js:90:39 E/TNS.Native( 2782): at EasySAXParser.onStartNode (/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js:137:13) E/TNS.Native( 2782): at EasySAXParser.parse (/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js:722:23) E/TNS.Native( 2782): at XmlParser.parse (/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js:184:22) E/TNS.Native( 2782): File: "/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js, line: 45, column: 8 E/TNS.Native( 2782): StackTrace: E/TNS.Native( 2782): Frame: function:'getComponentModule', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 45, column: 15 E/TNS.Native( 2782): Frame: function:'loadCustomComponent', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 166, column: 35 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 88, column: 39 E/TNS.Native( 2782): Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 135, column: 13 E/TNS.Native( 2782): Frame: function:'EasySAXParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js', line: 720, column: 23 E/TNS.Native( 2782): Frame: function:'XmlParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 182, column: 22 E/TNS.Native( 2782): Frame: function:'parseInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 139, column: 19 E/TNS.Native( 2782): Frame: function:'loadInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 210, column: 27 E/TNS.Native( 2782): Frame: function:'load', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 194, column: 27 E/TNS.Native( 2782): Frame: function:'pageFromBuilder', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 87, column: 27 E/TNS.Native( 2782): Frame: function:'resolvePageFromEntry', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 68, column: 20 E/TNS.Native( 2782): Frame: function:'Frame.navigate', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 126, column: 20 E/TNS.Native( 2782): Frame: function:'AndroidApplication.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 143, column: 26 E/TNS.Native( 2782): Frame: function:'app.init.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 114, column: 32
Or can this be an Android API mismatch?
How is it that the android action bar is blue when there is no mark-up making it blue? The only thing I see is the iOS code to change its background.
We should allow you to maintain grocery lists offline and sync to our backend.
I'll have to work with Nina to get the UX right, but I like this idea.
Over in the Getting Started Docs - Section 7 - the link for issue tracker is 404ing.
hello TJ VanToll & Jen Looper,
Unable to get tj's sample email/password working...
This should really have always been in the app.
Telerik Backend Services supports social logins so we should add the ability to sign in via Facebook and Twitter.
In addition to the checkboxes it would be nice to use strikeout text to indicate whether each item in the list is “done” or not.
Probably wait for NativeScript/NativeScript#875.
It will be good if we start advertising our fetch
API support instead of the homegrown http
module.
Had a clean checkout while running the command.
tns run ios --emulator
In file included from /Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQBarButtonItem.m:25:
/Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQToolbar.h:34:11: error: unknown
property attribute 'nullable'
@property(nullable, nonatomic, strong) UIFont *titleFont;
^
/Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQToolbar.h:39:11: error: unknown
property attribute 'nullable'
@property(nullable, nonatomic, strong) NSString *title;
^
2 errors generated.
The app shouldn’t forget who the user is if they’ve already signed in.
node vesion 12.37 , npm 2.11.3
tns install is not working , i've forced npm install -f
xec uname -a
stdout: Linux developpeur 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
stderr:
Exec npm -v
stdout: 2.11.3
stderr:
spawn: java -version
Exec node-gyp -v
stdout: v0.12.2
stderr:
Exec adb version
stdout: Android Debug Bridge version 1.0.32
Revision eac51f2bb6a8-android
stderr:
Exec android -h
stdout:
Usage:
android [global options] action [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.
Valid
actions
are
composed
of a verb
and an
optional
direct
object:
sdk : Displays the SDK Manager window.
avd : Displays the AVD Manager window.
list : Lists existing targets or virtual devices.
list avd : Lists existing Android Virtual Devices.
list target : Lists existing targets.
list device : Lists existing devices.
list sdk : Lists remote SDK repository.
create avd : Creates a new Android Virtual Device.
move avd : Moves or renames an Android Virtual Device.
delete avd : Deletes an Android Virtual Device.
update avd : Updates an Android Virtual Device to match the folders
of a new SDK.
create project : Creates a new Android project.
update project : Updates an Android project (must already have an
AndroidManifest.xml).
create test-project : Creates a new Android project for a test package.
update test-project : Updates the Android project for a test package (must
already have an AndroidManifest.xml).
create lib-project : Creates a new Android library project.
update lib-project : Updates an Android library project (must already have
an AndroidManifest.xml).
create uitest-project: Creates a new UI test project.
update adb : Updates adb to support the USB devices declared in the
SDK add-ons.
update sdk : Updates the SDK by suggesting new platforms to install
if available.
stderr:
Exec mono --version
stdout:
stderr: /bin/sh: 1: mono: not found
Exec git --version
stdout: git version 2.1.4
stderr:
Exec gradle -v
Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274
Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_45-internal (Oracle Corporation 25.45-b02)
OS: Linux 3.19.0-30-generic amd64
stderr:
Exec javac -version
stdout:
stderr: javac 1.8.0_66
System information:
{ procInfo: 'nativescript/1.4.3',
platform: 'linux',
os: 'Linux developpeur 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\n',
shell: '/bin/bash',
dotNetVer: null,
procArch: 'x64',
nodeVer: 'v0.12.7',
npmVer: '2.11.3',
javaVer: '1.8.0',
nodeGypVer: 'v0.12.2\n',
xcodeVer: null,
itunesInstalled: false,
cocoapodVer: null,
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: null,
gitVer: '2.1.4',
gradleVer: '2.3',
javacVersion: '1.8.0_66' }
Initializing analytics statuses.
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'platform'.
BeforeHookName for command platform-add is before-platform-add
AfterHookName for command platform-add is after-platform-add
Looking for project in '/home/nelson/github/node/sample-Groceries'
Project directory is '/home/nelson/github/node/sample-Groceries'.
/usr/local/lib/node_modules/nativescript/node_modules/ref/bin/linux-x64-v8-3.28/binding.node
is missing. Try reinstalling prebuilt
?
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'help'.
List of registered commands: /?, autocomplete, autocomplete|disable, autocomplete|enable, autocomplete|status, build, build|android, build|ios, create, debug, debug|android, debug|ios, deploy, device, device|android, device|get-file, device|ios, device|list-applications, device|list-files, device|log, device|put-file, device|run, device|stop, device|uninstall, doctor, emulate, emulate|android, emulate|ios, error-reporting, help, init, install, library, library|add, livesync, platform, platform|*list, platform|add, platform|remove, platform|update, plugin, plugin|add, plugin|remove, prepare, run, run|android, run|ios, usage-reporting
Reading help for command 'platform|add'. FileName is 'platform-add.md'.
┌───────────────┬─────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Android │ $ tns platform add android [--frameworkPath │
│ latest │ ] [--symlink] [--sdk ] │
│ runtime │ │
│ Android │ $ tns platform add android[@] [- │
│ selected │ -frameworkPath ] [--symlink] [--sdk │
│ runtime │ ] │
└───────────────┴─────────────────────────────────────────────────┘
Configures the current project to target the selected platform.
* --frameworkPath - Sets the path to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --symlink is specified, <File Path> must point to directory in which the runtime is already extracted. If --symlink is not specified, <File Path> must point to a valid npm package.
* --symlink - Creates a symlink to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --frameworkPath is specified, creates a symlink to the specified directory. If --frameworkPath is not specified, creates a symlink to platform runtime installed with your current version of NativeScript.
* --sdk - Sets the target Android SDK for the project.
* <API Level> is a valid Android API level. For example: 17, 19, MNC.
* <File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
* <Version> is any available version of the respective platform runtime published in npm.
drawerTransition="PushTransition"
Why doesn't this work currently?
Very well explained and developed app, but I'm getting this error "JS: TypeError: Network request failed" after logging or registering as a new user to the app. This happens on Genymotion emulator as well as a physical device. This occurs only when connected using WiFi (at work) but works fine when using Mobile Data from my android phone.
Any changes need to be done to the application to resolve this from the app itself? Thank you.
At a very specific browser width (or page width, or content width, etc), the sidebar of the Getting Started page of documentation overlaps onto the main content area, making it frustrating to read. That width just happens to be the size of my browser when made full screen on my secondary display.
That width seems to be 1263px, as shown in the screenshot below.
I am trying to run this on my Windows 10 machine with Genymotion emulator. Project is successfully prepared but deployment fails with error
"Error retrieving parent for item: No resource found that matched given name 'android:Widget.Material.Button.Colored'
I have android sdk v24.0.2 is installed and I am able to successfully run the NativeScript sample tap achievement app.
We should use an activity indicator when loading the grocery list.
On the register/login/password screens the activity indicators should be centered on top of text fields. Those text fields should also be disabled during processing.
This might have something to do with the emulator running in debug mode, but when I tie a console.log to the page object, I get nothing, when not using --watch it works as expected. Wondering if anyone else has noticed this or if this is a byproduct of the livesync mode.
It’d be nice if the fruit in the app did a little animation per Nina’s design.
My android:versionCode
is at "3"
and my android:versionName
is at "2.0"
, but that's currently not reflected in source control.
An empty message is shown when trying to Sing In, but did not enter Email Address and Password on Android.
UI for NativeScript's ListView will provide this functionality soon http://www.telerik.com/ios-ui/listview
If I pull down this repo and "tns run android" (with Geny up and running), the master version of this sample app builds correctly and launches on the Geny emulator.
However, if I checkout the "start" branch and "tns run android", I get the following error:
:mergeDebugResources
AAPT out(83457444) : No Delegate set : lost message:Done
AAPT err(83457444): ERROR: 9-patch image C:\Dev\Apps\NativeScript\First\sample-Groceries\platforms\android\src\main\res\drawable-nodpi\splashscreen.9.png malformed.
:mergeDebugResources FAILED
AAPT err(83457444): No marked region found along edge.
AAPT err(83457444): Found along top edge.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Crunching Cruncher splashscreen.9.png failed, see logs
To get the build to be successful, I can:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.