-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
227 changed files
with
25,205 additions
and
16,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
@NativeClass() | ||
@JavaProxy('com.tns.NativeScriptApplication') | ||
class Application extends com.facebook.react.ReactCustomApplication { | ||
public onCreate(): void { | ||
super.onCreate(); | ||
} | ||
|
||
public attachBaseContext(baseContext: android.content.Context) { | ||
super.attachBaseContext(baseContext); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page"> | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:ui="./view" navigatingTo="navigatingTo" class="page"> | ||
<Page.actionBar> | ||
<ActionBar title="React Native with NativeScript" icon="" class="action-bar"> | ||
<ActionBar title="React Native Modules" icon="" class="action-bar"> | ||
</ActionBar> | ||
</Page.actionBar> | ||
<StackLayout class="p-20"> | ||
<ScrollView class="h-full"> | ||
<StackLayout> | ||
<Button text="Promise Test" tap="{{ testPromise }}" class="btn btn-primary"/> | ||
</StackLayout> | ||
</ScrollView> | ||
|
||
<StackLayout> | ||
<Button text="Test Primitives" tap="{{ testPrimitives }}" class="btn btn-primary"/> | ||
<Button text="Test Promise" tap="{{ testPromise }}" class="btn btn-primary"/> | ||
<Button text="Test Callback" tap="{{ testCallback }}" class="btn btn-primary"/> | ||
<ui:ModuleTestView style="width:100%;height:200px;background-color:#f0f0f0;"> | ||
<Label text="I am a RN view with children" /> | ||
</ui:ModuleTestView> | ||
</StackLayout> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const Home = () => { | ||
return ( | ||
<flex> | ||
<webview | ||
javaScriptEnabled={true} | ||
source={{uri: 'https://nativescript.org'}} | ||
style={{ | ||
backgroundColor: 'red', | ||
}} | ||
/> | ||
</flex> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { requireNativeComponent } from 'react-native'; | ||
|
||
export const ModuleTestView = requireNativeComponent('ModuleTestView'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
--- | ||
title: "Open Native" | ||
title: 'Open Native' | ||
logo: logo.png | ||
#base_path: "/open-native" | ||
docs_dir: ./docs_md | ||
edit_root: https://github.com/OpenNative/open-native/tree/main/docs_md/ | ||
base_url: https://open-native.org | ||
|
||
navigation: | ||
- path: docs/installation.md | ||
- path: docs/install-module.md | ||
- path: docs/finding-modules.md | ||
- path: docs/reference.md | ||
- path: docs/troubleshooting.md | ||
- path: installation.md | ||
- path: install-module.md | ||
- path: finding-modules.md | ||
- path: reference.md | ||
- path: troubleshooting.md | ||
|
||
colors: | ||
main: "#2dd4bc" | ||
main: '#2dd4bc' | ||
|
||
footer: | ||
copyright: Copyright © 2023 Ammar Ahmed |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
open-native.org |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.