11/* eslint-disable no-redeclare */
2- // import { launchEvent } from '@nativescript/core/application';
3- // console.log(launchEvent);
4- // console.log('gestures common', global.NativeScriptHasInitGlobal);
5-
62import Observable from '@nativescript-community/observable' ;
73import { EventData , GridLayout } from '@nativescript/core' ;
84import { CssProperty , Property , Style , View , booleanConverter } from '@nativescript/core/ui' ;
@@ -66,7 +62,7 @@ export interface TypeMap {
6662
6763function createGetter ( key : string , options : NativePropertyOptions ) {
6864 // console.log('createGetter', key, options);
69- const nativeGetterName = ( ( global . isAndroid ? options . android : options . ios ) || options ) . nativeGetterName || 'get' + key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ;
65+ const nativeGetterName = ( ( __ANDROID__ ? options . android : options . ios ) || options ) . nativeGetterName || 'get' + key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ;
7066 const converter = options . converter ;
7167 return function ( ) {
7268 let result ;
@@ -82,7 +78,7 @@ function createGetter(key: string, options: NativePropertyOptions) {
8278 } ;
8379}
8480function createSetter ( key , options : NativePropertyOptions ) {
85- const nativeSetterName = ( ( global . isAndroid ? options . android : options . ios ) || options ) . nativeSetterName || 'set' + key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ;
81+ const nativeSetterName = ( ( __ANDROID__ ? options . android : options . ios ) || options ) . nativeSetterName || 'set' + key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ;
8682 return function ( newVal ) {
8783 this . options [ key ] = newVal ;
8884 if ( this . native && this . native [ nativeSetterName ] ) {
0 commit comments