rnc-archive / react-native-webgl

DEPRECATED: use expo-gl – Implements WebGL for react-native
296 stars 73 forks source link

Can I use canvas 2D API? #90

Closed tomnotcat closed 5 years ago

tomnotcat commented 5 years ago

Feature Request

Can I use canvas 2d api, like web canvas.getContext("2d")

Why it is needed

For some 2d drawing apps (like drawing board), 2d is simpler.

Possible implementation

Export 2d api (also based on web standard).

Code sample

import { CanvasView } from "react-native-webgl";

gre commented 5 years ago

not really relevant to this project. it implements webgl context, not 2d context (which could be another lib)