
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
expo-graphics
Advanced tools
This package has been deprecated in favor of using GLView directly.
Tools to help simplify and manage GL state.
yarn add expo-graphics
Import the library into your JavaScript file:
import ExpoGraphics from 'expo-graphics';
ExpoGraphics.View
A view that assists with common GL tasks.
Property | Type | Default | Description |
---|---|---|---|
isShadowsEnabled | ?boolean | false | Overrides the render buffer allowing for shadows, this works by default on Android: iOS Only |
onRender | (delta: number) => void | null | Called every frame with delta time since the last frame |
onContextCreate | ({gl, canvas?, width, height, scale }) => Promise | null | Called with the newly created GL context |
onShouldReloadContext | () => boolean | null | A delegate function that requests permission to reload the GL context when the app returns to the foreground |
onResize | (layout: Layout) => void | null | Invoked when the view changes size, or the device orientation changes, returning the {x, y, width, height, scale} |
FAQs
Tools for building universal graphic based components in Expo
We found that expo-graphics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.