Git Product home page Git Product logo

docs-v8's Introduction

Contribute to Docs at new location:

Don't use this repo; instead can modify docs here:

NativeScript Logo


Running the docs locally

git clone https://github.com/NativeScript/docs-new.git
npm i
npm start

Important Note about Plugin Docs

Plugin docs are automatically synced every night via cron job with various plugin workspace repos, for example:

Each plugin workspace can manage it's own set of README's for documentation. This docs repo will keep itself in sync with them every night. If you want to modify any plugin documentation, you can do so via their plugin workspaces as listed above.

Outline

docs-v8's People

Contributors

asciidiego avatar bgrand-ch avatar bradmartin avatar brianrclow avatar darko-bw avatar davecoffin avatar dmitrysharabin avatar edusperoni avatar francoiscx avatar garanews avatar herefishyfish avatar isapir avatar janoshrubos avatar jcassidyav avatar laking avatar leon0824 avatar marckassay avatar michizhou avatar mrsnoozles avatar nathanaela avatar nathanwalker avatar nativescript-oss avatar peterhauke avatar reneroboter avatar rigor789 avatar shiv19 avatar triniwiz avatar vallemar avatar williamjuan027 avatar winescout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs-v8's Issues

Tutorial image paths src/assets vs app/assets

All the tutorial pages use the src/assets path for the image files. However, the repo for the tutorial app source code uses app/assets for three options:

  1. Plain
  2. Svelte
  3. Vue

The tutorial text should be brought in line with the actual project structure in these three files:

  1. tutorial/plain.md
  2. tutorial/svelte.md
  3. tutorial/vue.md

The existing src/assets text is correct for both Angular and React.

Document new features

I see a lot of features in the NS core and NS-cli repos but I don't see them making it to the new documentation. Couldn't a "bot" check all the new FEATs they have before being documented in this repo? This is just an idea, so as not to leave new features in the pipeline

Access native apis

I am trying to access native android apis.
I have created a new project with the version of ns8, installed the types. But when I try to access the widget I get an error

Cli documentation

I have gone to look for information in the documents ns typings and I have realized that there is no section on the cli, there is no place where to see the compatible commands.

I think it would be nice to add a new space in the documents where it addresses everything about the cli.

Building for Smart Watches

Following the steps at Building for Smart Watches, I went through a couple of issues listed below:

  • I couldn't find the fields WKCompanionAppBundleIdentifier and WKAppBundleIdentifier but I assumed them to be the Bundle identifier field.
  • When I ran ns run ios, I got the Multiple commands produce error and I'm stuck there. I tried many suggested solutions but nothing worked so far. Could you please tell me what could be causing the error and if my assumption for the point is correct?

Command to install ns?

Hi!

I am just installing NativeScript on a fresh npm installation and I can't find how to install nativescript in the docs, especially in the introduction.

This page should show the command, before the "Overview of NativeScript development" section.

Thanks!

Broken Links

I used markdown-link-check to check for broken links.
The result is below,

I was going to raise a pull request to fix the ones linking to the api-reference, but am unsure if adding a redirect, or just fixing the link in the md file is the best thing to do ?

I'd be inclined to say fix the links in the markdown.


FILE: advanced-concepts.md

72 links checked.
/binding-generator/extend-class-interface.md → Status: 400

FILE: cli-lang.md

FILE: development-workflow.md
54 links checked.
https://discourse.nativescript.org/c/plugins → Status: 0
/plugins/building-plugins.md → Status: 400
https://www.nativescript.org/books-and-videos → Status: 404

FILE: index.md
25 links checked.
https://github.com/NativeScript/template-master-detail-ts/blob/master/tools/preinstall.js → Status: 404
https://github.com/NativeScript/template-master-detail-ts/blob/master/tools/postinstall.js → Status: 404

FILE: interaction.md
67 links checked.
/api-reference/classes/_ui_core_view_.view.html → Status: 400
/api-reference/interfaces/_ui_animation_.animationdefinition.html → Status: 400
/api-reference/classes/_ui_animation_.animation.html → Status: 400
/api-reference/interfaces/_ui_animation_.pair.html → Status: 400
/api-reference/modules/_ui_enums_.animationcurve.html → Status: 400
/api-reference/classes/_ui_core_view_.view → Status: 400
/api-reference/classes/_ui_core_view_.view → Status: 400

FILE: introduction.md
25 links checked.
https://github.com/NativeScript/template-master-detail-ts/blob/master/tools/preinstall.js → Status: 404
https://github.com/NativeScript/template-master-detail-ts/blob/master/tools/postinstall.js → Status: 404

FILE: performance.md
27 links checked.
/api-reference/modules/_ui_image_.html → Status: 400
/api-reference/modules/_ui_image_.html → Status: 400


FILE: plugins\detox.md
16 links checked.
https://github.com/wix/Detox/blob/master/examples/demo-react-native-jest/e2e/app-hello.e2e.js → Status: 404

FILE: plugins\fingerprint-auth.md
10 links checked.
https://github.com/EddyVerbruggen/nativescript-fingerprint-auth/blob/master/demo/app/vendor-platform.android.ts#L9 → Status: 404
https://godpraksis.no/2016/03/fingerprint-trojan/ → Status: 0


Resources for a newbie in app development

Hi, I am trying to understand how to develop apps with NativeScript and I am completely lost. I do have experience with JS and I was able to catch the workflow, but I don't understand the app structure (I mean which code goes where and why, not the tree directory structure), the differences between versions and so on.

For example, I was able to make a demo in Playground but now that I want to run the project locally, it seems there are so many changes that I haven't being able to run it (migration didn't work).

These docs are good reference, but I didn't see an explanation about what “views” are (my experience is in web development, so I dunno the structure or logic for app development). Stack Overflow is full of info but a lot of it seems outdated or at least the syntax is different of what I have seen in version 8.

So anything that works to understand app development logic and structure with NativeScript would be appreciated.

Nice effort, btw!

proposal for less invasive environment installation under GNU/Linux

Hi!

I'm trying out nativescript, I come from ionic development but I don't like it's governance model (and business model neither!)

I want to share my method for preparing my environment, as I think is less invasive with my OS (Ubuntu GNU/Linux 20.04) (no ubuntu ppas needed, nothing downloaded with no future updates either, leaving a cleaner environment):

For installing node, I use python virtual environments and nodeenv:

sudo apt install python3-virtualenv

in project folder I create it, and activate it:

virtualenv .python_env
source .python_env/bin/activate

now, in ptyhon virtual environment I can install nodeenv for node virtual environments:

(.python_env) pip install nodeenv
(.python_env) nodeenv .env

deactivate python environment, and safely remove it, activating now node virtualenvironment

(.python_env) deactivate
rm -r .python
source .env/bin/activate

And now we can work!!

(.env) npm install -g nativescript
(.env) etc.

for Android Studio I use snap, as it is very updated
for java the default 1.8 version of openjdk is stable and works. (ubuntu 20.04 has also versions 11, 13, 16 and 17 in its repositories but I have never test them, and can be problematic as I need version 8 for other software from state administration)
What I don't find is version 14!

cheers and happy hacking!

png images in tutorials

Fix issue in http page example

at https://docs.nativescript.org/http.html#request
import { Http, HttpResponse } from '@nativescript/core'

Http.request({
url: 'https://httpbin.org/get',
method: 'GET'
}).then(
(response: HttpResponse) => {
// Argument (response) is HttpResponse
console.log(Response Status Code: ${response.statusCode})
console.log(Response Headers: ${response.statusCode})
console.log(Response Content: ${response.content})
},
e => {}
)
I believe in the second log it needs to be response.headers instead of response.statusCode

Example in docs does not recognize "android.app.Application"

I'm starting with nativescript 8 but the documentation for version 8 is horrible, version 7 has much better documentation but they are not compatible in most cases.

The official documentation shows an example to extending the android application, but it does not show its imports:

@NativeClass()
@JavaProxy('org.myApp.Application')
class Application extends android.app.Application {
  public onCreate(): void {
    super.onCreate()
    // At this point modules have already been initialized
    // Enter custom initialization code here
  }

  public attachBaseContext(baseContext: android.content.Context) {
    super.attachBaseContext(baseContext)
    // This code enables MultiDex support for the application (if needed)
    // androidx.multidex.MultiDex.install(this);
  }
}

I couldn't get the "android.app.Application" class to be recognized, even after importing the following:

import { android } from '@nativescript/core/application';

Looking at the content of "@nativescript/core/application", I see that those properties do not exist and that for example the property "android.app.Application" was changed to "nativeApp".

I don't know if I'm importing the correct class or maybe I'm missing a type import or something like that, because in the NativeScript source codes they refer to "android.app.Application" without any import that refers to it.

I know I'm missing something, but seriously the official documentation for version 8 needs to be corrected or improved

bug: admob docs missing closing tag

Currently the admob plugin is commented out in the vitepress config. Something in the MD causes vitepress to error about missing end tag, looked it over and can't locate which line exactly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.