2.0.0 • Published 3 years ago

expo-graphics v2.0.0

Weekly downloads
131
License
MIT
Repository
github
Last release
3 years ago

NPM


expo-graphics

This package has been deprecated in favor of using GLView directly.

Tools to help simplify and manage GL state.

Installation

yarn add expo-graphics

Usage

Import the library into your JavaScript file:

import ExpoGraphics from 'expo-graphics';

Components

ExpoGraphics.View

A view that assists with common GL tasks.

Props

PropertyTypeDefaultDescription
isShadowsEnabled?booleanfalseOverrides the render buffer allowing for shadows, this works by default on Android: iOS Only
onRender(delta: number) => voidnullCalled every frame with delta time since the last frame
onContextCreate({gl, canvas?, width, height, scale }) => PromisenullCalled with the newly created GL context
onShouldReloadContext() => booleannullA delegate function that requests permission to reload the GL context when the app returns to the foreground
onResize(layout: Layout) => voidnullInvoked when the view changes size, or the device orientation changes, returning the {x, y, width, height, scale}
2.0.0

3 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago