mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fix a crash on Button tap - reexport TouchAction
This commit is contained in:
@ -12,4 +12,4 @@ export abstract class ButtonBase extends TextBase implements ButtonDefinition {
|
||||
set textWrap(value: boolean) {
|
||||
this.style.whiteSpace = value ? WhiteSpace.NORMAL : WhiteSpace.NO_WRAP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -107,4 +107,4 @@ export class Button extends ButtonBase {
|
||||
this.nativeView.setStateListAnimator(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,13 @@ import {
|
||||
Property, CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty,
|
||||
gestureFromString, isIOS, traceEnabled, traceWrite, traceCategories, makeParser, makeValidator
|
||||
} from "./view-base";
|
||||
import { observe as gestureObserve, GesturesObserver, GestureTypes, GestureEventData } from "ui/gestures";
|
||||
import {
|
||||
observe as gestureObserve,
|
||||
GesturesObserver,
|
||||
GestureTypes,
|
||||
GestureEventData,
|
||||
TouchAction
|
||||
} from "ui/gestures";
|
||||
import { Font, parseFont, FontStyle, FontWeight } from "ui/styling/font";
|
||||
|
||||
// Only types:
|
||||
@ -21,8 +27,13 @@ export { layout };
|
||||
export * from "./view-base";
|
||||
|
||||
export {
|
||||
GestureTypes, GesturesObserver, GestureEventData,
|
||||
Background, Font, Color
|
||||
GestureTypes,
|
||||
GesturesObserver,
|
||||
GestureEventData,
|
||||
TouchAction,
|
||||
Background,
|
||||
Font,
|
||||
Color,
|
||||
}
|
||||
|
||||
import * as am from "ui/animation";
|
||||
|
Reference in New Issue
Block a user