File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export class PanGestureHandler extends Handler<com.swmansion.gesturehandler.PanG
353353 @nativeProperty ( { nativeSetterName : 'setAverageTouches' } ) avgTouches : number ;
354354 @nativeProperty numberOfPointers : number ;
355355 createNative ( options ) {
356- const context = Application . android . context as android . content . Context ;
356+ const context = Utils . android . getApplicationContext ( ) as android . content . Context ;
357357 return new com . swmansion . gesturehandler . PanGestureHandler ( context ) ;
358358 }
359359 getExtraData ( handler : com . swmansion . gesturehandler . PanGestureHandler ) {
@@ -439,7 +439,7 @@ export class LongPressGestureHandler extends Handler<com.swmansion.gesturehandle
439439 @nativeProperty minDurationMs : number ;
440440 @nativeProperty ( { converter : { fromNative : Utils . layout . toDevicePixels } } ) maxDist : number ;
441441 createNative ( options ) {
442- const context = Application . android . context as android . content . Context ;
442+ const context = Utils . android . getApplicationContext ( ) as android . content . Context ;
443443 return new com . swmansion . gesturehandler . LongPressGestureHandler ( context ) ;
444444 }
445445 getExtraData ( handler : com . swmansion . gesturehandler . LongPressGestureHandler ) {
You can’t perform that action at this time.
0 commit comments