Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
halfnelson committed Oct 25, 2022
2 parents 14dd5c9 + 3ad944b commit fbbd10b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs_src/content/docs/01-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Check it worked by running `ns`:

Svelte-Native really is native, so it needs a mobile device to run. The build setup for iOS or Android can be a pain, so the wizards at Nativescript have created the NativeScript playground app. This allows us to run Svelte-Native application code without having to build the full mobile application.

[<img src="/media/app-store.png" alt="Get if rom the App Store">](https://itunes.apple.com/us/app/nativescript-playground/id1263543946?mt=8&amp;ls=1)
[<img src="/media/google-play.png" alt="Get it from Google Play">](https://play.google.com/store/apps/details?id=org.nativescript.play)
[<img src="/media/app-store.png" alt="Get if rom the App Store">](https://preview.nativescript.org/ios)
[<img src="/media/google-play.png" alt="Get it from Google Play">](https://preview.nativescript.org/android)

#### Create a new Svelte-Native app

Expand Down
2 changes: 1 addition & 1 deletion docs_src/content/docs/35-action-bars.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To remove this styling from your app, you can set the `flat` property to `true`.

| Name | Type | Description |
|------|------|-------------|
| `ios.systemIcon` | `Number` | Gets or sets the icon of the `ActionItem` for iOS. The value must be a number from the [`UIBarButtonSystemItem` enumeration](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem).
| `ios.systemIcon` | `Number` | Gets or sets the icon of the `ActionItem` for iOS. The value must be a number from the [`UIBarButtonSystemItem.SystemItem` enumeration](https://developer.apple.com/documentation/uikit/uibarbuttonitem/systemitem/).
| `android.systemIcon` | `String` | Gets or sets the icon of the `ActionItem` for Android. The value must be the name of a [drawable resource](https://developer.android.com/reference/android/R.drawable).
| `ios.position` | `String` | Gets or sets the position of the `ActionItem` within the `ActionBar` for iOS.<br/>Valid values: `left` or `right`.<br/>Default value is `left`.
| `android.position` | `String` | Gets or sets the position of the `ActionItem` within the `ActionBar` for Android.<br/>Valid values:<br/>`actionBar` (places the item in the ActionBar),<br/>`popup` (places the item in the options menu; renders items as text), and<br/>`actionBarIfRoom` (places the item in the `ActionBar` if there is enough room for it there; otherwise, places it in the options menu).<br/>Default value is `actionBar`.
Expand Down
2 changes: 1 addition & 1 deletion docs_src/content/tutorial/05-todo-app-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ The [NativeScript core theme](https://www.nativescript.org/blog/an-early-look-at
<button col="1" row="0" text="Add task" on:tap="{onButtonTap}" class="-primary" />
```

Our input text should also be more emphasised. At the bottom of `App.svelte` add the following style tag:
Our input text should also be more emphasised. At the bottom of `Home.svelte` add the following style tag:

```html
<style>
Expand Down
15 changes: 14 additions & 1 deletion src/jsx/svelte-native-jsx-nativescript-core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,25 @@ type View = import("@nativescript/core").View;
type ViewBase = import("@nativescript/core").ViewBase;
type WebViewInterfacesLoadEventData = import("@nativescript/core").LoadEventData;
type iOSFrame = import("@nativescript/core/ui/frame").iOSFrame;
type Override<What, With> = Omit<What, keyof With> & With
type Override<What, With> = Omit<What, keyof With> & With;
type NativeElementNode<T> = import("src/dom").NativeElementNode<T>


declare global {
namespace svelteNative.JSX {

// Every namespace eligible for use with the new Svelte intellisense needs to implement the following two functions
function mapElementTag(tag: any): NativeElementNode<any>;

function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
// "undefined | null" because of <svelte:element>
element: Key | undefined | null, attrs: Elements[Key]
): NativeElementNode<any>;
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
// "undefined | null" because of <svelte:element>
element: Key | undefined | null, attrsEnhancers: T, attrs: Elements[Key] & T
): NativeElementNode<any>;

// ui/layouts/absolute-layout/index.d.ts
type TAbsoluteLayoutAttributes = Override<LayoutBaseAttributes, {

Expand Down

0 comments on commit fbbd10b

Please sign in to comment.