Added method "transform" to canvas 2d context implementation

This patch is needed to implement the "transform" function for the 2d canvas context in native-android and native-ios