RemoteWebDriver unable to perform JavaScript "mobile:swipe"

Hi All

I am using Appium 1.5.2 and I have noted All JavaScript action has been depreciated.

We wrote everything as WebDrivers then casting either AndroidDriver or iOSDriver for NATIVE applicaiton. Thus allowing us to use swipe action.

However we busy migrating to AWS DeviceFarm and they use RemoteWebDrivers, if executing our code it indicates that we cannot cast AndroidDriver or iOSDriver to RemoteWebDriver thus causing a issue whereby we unable to perform the swipe action on NATIVE application everyone suggest to use JavaScriptExecutor and all the “mobile:” keys have been depreciated to AppiumDrivers.

Do anyone have a solution besides downgrading to a previous version.