nativescript on fire cross platform development cross
play

NativeScript On Fire Cross-Platform Development Cross-Plattform - PowerPoint PPT Presentation

NativeScript On Fire Cross-Platform Development Cross-Plattform Entwicklung MobiDev. Angular Native. https://mobidev.biz/blog/angular-native-nativescript-with-angular-2 NativeScript N JavaScript Engine App code Hooks Dispatcher System


  1. NativeScript On Fire

  2. Cross-Platform Development

  3. Cross-Plattform Entwicklung MobiDev. Angular Native. https://mobidev.biz/blog/angular-native-nativescript-with-angular-2

  4. NativeScript N JavaScript Engine App code Hooks Dispatcher System NativeScript Runtime

  5. NativeScript N JavaScript Engine calls native API accesses native objects App code Hooks Dispatcher System NativeScript Runtime

  6. NativeScript N var button = Button button = new android.widget.Button(getApplicationContext()) new Button(getApplicationContext()); JavaScript Engine calls native API accesses native objects App code Hooks Dispatcher System NativeScript Runtime

  7. NativeScript N var button = Button button = new android.widget.Button(getApplicationContext()) new Button(getApplicationContext()); JavaScript Engine calls native API accesses native objects calls callback function calls JavaScript App code Hooks Dispatcher System functions NativeScript Runtime

  8. NativeScript N JavaScript Engine Button ListView FileSystem App code Modules Hooks Dispatcher System NativeScript Runtime

  9. NativeScript N JavaScript Engine Button ListView FileSystem App code Modules Hooks Dispatcher System NativeScript Runtime platform-agnostic platform-specific

  10. NativeScript N JavaScript Engine Any JS library Button ListView FileSystem App code Modules Hooks Dispatcher System NativeScript Runtime TypeScript AOT Routing Components

  11. NativeScript N JavaScript Engine Any JS library Button ListView FileSystem App code Modules Hooks Dispatcher System NativeScript Runtime Any native .. .. interface TypeScript AOT .. UI component .. library Routing Components

  12. NativeScript N JavaScript Engine Live Reload Zero Day Support Any JS library Over-the-air updates Button ListView FileSystem App code Modules Hooks Dispatcher System NativeScript Runtime Any native .. .. interface TypeScript AOT .. UI component .. library Routing Components

  13. NativeScript N

  14. React Native R

  15. React Native R ... public class ReactButtonManager extends SimpleViewManager<ReactButtonView> { public static final String REACT_CLASS = "RCTButtonView"; @Override public String getName() { return REACT_CLASS; } @Override public ReactButtonView createViewInstance(ThemedReactContext context) { return new ReactButtonView(context, new Button(), mCallerContext); } ... }

  16. NativeScript N ... export class MyButton extends MyButtonBase { // added for TypeScript intellisense. nativeView: android.widget.Button; public createNativeView(): Object { // Initialize ClickListener. initializeClickListener(); // Create new instance of android.widget.Button. const button = new android.widget.Button(this._context); // set onClickListener on the nativeView. button.setOnClickListener(clickListener); return button; } ... }

  17. N

  18. Thanks! ? Questions or remarks?

  19. NativeScript N

Recommend


More recommend