You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

expo-graphics

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-graphics

Tools for building universal graphic based components in Expo

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
35
20.69%
Maintainers
2
Weekly downloads
 
Created
Source

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}

Keywords

react

FAQs

Package last updated on 14 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts