chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 23:27:18 -07:00
parent 49cd2f0df3
commit c6902538cf
62 changed files with 328 additions and 182 deletions

View File

@@ -5,12 +5,12 @@ import { textAlignmentProperty } from '../text-base';
import { TextAlignment } from '../enums';
import { profile } from '../../profiling';
import { TouchGestureEventData, GestureTypes, TouchAction } from '../gestures';
import { device } from '../../platform';
import { Device } from '../../platform';
import lazy from '../../utils/lazy';
export * from './button-common';
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
const sdkVersion = lazy(() => parseInt(Device.sdkVersion));
interface ClickListener {
new (owner: Button): android.view.View.OnClickListener;
@@ -57,7 +57,7 @@ export class Button extends ButtonBase {
private _stateListAnimator: any;
private _highlightedHandler: (args: TouchGestureEventData) => void;
@profile()
@profile
public createNativeView() {
if (!AndroidButton) {
AndroidButton = android.widget.Button;

View File

@@ -6,7 +6,7 @@ import { textAlignmentProperty, whiteSpaceProperty, WhiteSpace } from '../text-b
import { TextAlignment } from '../enums';
import { profile } from '../../profiling';
import { TouchGestureEventData, GestureTypes, TouchAction } from '../gestures';
import { device } from '../../platform';
import { Device } from '../../platform';
import { layout } from '../../utils';
export * from './button-common';