| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This is a TypeScript NativeScript app containing the source code for the various examples used in the docs.
Running these examples is the same as other NativeScript apps:
ns debug ios
ns debug androidThe app is also used to generate screenshots for the docs. This is done using Maestro and deep-linking into the app.
To Generate new screenshots:
maestro test flows/screenshots.yamlmaestro --device emulator-5554 test flows/screenshots.yaml && maestro --device 6B145C36-C77C-4380-AD07-E40A63FC9716 test flows/screenshots.yamlNote: Screenshots will be generated for components listed in flows/screenshots.js - when adding a new component, make sure to list it.
To reference an example in docs markdown files, use following syntax:
<<< @/../examples/typescript/src/ui/Label/template.xml#exampleThe #example is the name of a region to pull in, this is used because we don't necessarily want to render the whole file in the code block - we can define named regions using the #region <name> and #regionend <name> comments:
<!-- src/ui/Label/template.xml -->
<Page>
<GridLayout>
<ContentView verticalAlignment="center" horizontalAlignment="center">
<!-- #region example -->
<Label text="Hello NativeScript!" />
<!-- #endregion example -->
</ContentView>
</GridLayout>
</Page>| Back | FazBrowse Home | New Git URL |