Skip to content

Instantly share code, notes, and snippets.

@ochanje210
Created March 2, 2017 05:46
Show Gist options
  • Select an option

  • Save ochanje210/f767a7929ba091f9cd519a542b3b1a37 to your computer and use it in GitHub Desktop.

Select an option

Save ochanje210/f767a7929ba091f9cd519a542b3b1a37 to your computer and use it in GitHub Desktop.
matrix = this.rotateXZ(dx, dy - 90);
this.transformOrigin(matrix, origin);
this.refViewTop.setNativeProps({style: {transform: [{perspective: 1000}, {matrix: matrix}]}});
matrix = this.rotateXZ(-dx, dy + 90);
this.transformOrigin(matrix, origin);
this.refViewBottom.setNativeProps({style: {transform: [{perspective: 1000}, {matrix: matrix}]}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment