Execute java script command on ios device using appium studio

I just want to do the set property command(date,time,etc.,) on appium studio so for i found the way was execute java script but i couldn’t able to run the command because it was running on web view but i have to do in native mode so i need a solution for this!