Fix a crash on Button tap - reexport TouchAction

This commit is contained in:
Hristo Deshev
2017-02-20 16:58:11 +02:00
parent 0905858d7d
commit b9c0d33b3a
3 changed files with 16 additions and 5 deletions

View File

@ -12,4 +12,4 @@ export abstract class ButtonBase extends TextBase implements ButtonDefinition {
set textWrap(value: boolean) { set textWrap(value: boolean) {
this.style.whiteSpace = value ? WhiteSpace.NORMAL : WhiteSpace.NO_WRAP; this.style.whiteSpace = value ? WhiteSpace.NORMAL : WhiteSpace.NO_WRAP;
} }
} }

View File

@ -107,4 +107,4 @@ export class Button extends ButtonBase {
this.nativeView.setStateListAnimator(null); this.nativeView.setStateListAnimator(null);
} }
} }
} }

View File

@ -7,7 +7,13 @@ import {
Property, CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty, Property, CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty,
gestureFromString, isIOS, traceEnabled, traceWrite, traceCategories, makeParser, makeValidator gestureFromString, isIOS, traceEnabled, traceWrite, traceCategories, makeParser, makeValidator
} from "./view-base"; } 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"; import { Font, parseFont, FontStyle, FontWeight } from "ui/styling/font";
// Only types: // Only types:
@ -21,8 +27,13 @@ export { layout };
export * from "./view-base"; export * from "./view-base";
export { export {
GestureTypes, GesturesObserver, GestureEventData, GestureTypes,
Background, Font, Color GesturesObserver,
GestureEventData,
TouchAction,
Background,
Font,
Color,
} }
import * as am from "ui/animation"; import * as am from "ui/animation";