New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-gl

Package Overview
Dependencies
Maintainers
19
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-gl - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0-rc.0

build/WebGL2RenderingContext.d.ts

7

build/GLView.d.ts

@@ -78,4 +78,4 @@ import * as React from 'react';

static createContextAsync(): Promise<ExpoWebGLRenderingContext>;
static destroyContextAsync(exgl?: WebGLRenderingContext | number): Promise<boolean>;
static takeSnapshotAsync(exgl?: WebGLRenderingContext | number, options?: SnapshotOptions): Promise<GLSnapshot>;
static destroyContextAsync(exgl?: ExpoWebGLRenderingContext | number): Promise<boolean>;
static takeSnapshotAsync(exgl?: ExpoWebGLRenderingContext | number, options?: SnapshotOptions): Promise<GLSnapshot>;
nativeRef: ComponentOrHandle;

@@ -91,5 +91,2 @@ exglCtxId?: number;

}
declare class WebGLRenderingContext {
__exglCtxId?: number;
}
declare type WebGLObjectId = any;

@@ -96,0 +93,0 @@ declare class WebGLObject {

import { ViewProps } from 'react-native';
import WebGL2RenderingContext from './WebGL2RenderingContext';
export declare type SurfaceCreateEvent = {

@@ -25,3 +26,4 @@ nativeEvent: {

};
export interface ExpoWebGLRenderingContext extends WebGLRenderingContext {
export interface ExpoWebGLRenderingContext extends WebGL2RenderingContext {
__exglCtxId: number;
endFrameEXP(): void;

@@ -28,0 +30,0 @@ }

@@ -39,4 +39,3 @@ import invariant from 'invariant';

}
const context = canvas.getContext('webgl2', contextAttributes) ||
canvas.getContext('webgl', contextAttributes) ||
const context = canvas.getContext('webgl', contextAttributes) ||
canvas.getContext('webgl-experimental', contextAttributes) ||

@@ -43,0 +42,0 @@ canvas.getContext('experimental-webgl', contextAttributes);

{
"name": "expo-gl",
"version": "4.0.0",
"version": "5.0.0-rc.0",
"description": "Provides GLView that acts as OpenGL ES render target and gives GL context object implementing WebGL 2.0 specification.",

@@ -41,13 +41,14 @@ "main": "build/index.js",

"unimodules-file-system-interface": "*",
"expo-gl-cpp": "*"
"expo-gl-cpp": "~5.0.0-rc.0"
},
"dependencies": {
"expo-gl-cpp": "~5.0.0-rc.0",
"prop-types": "^15.6.2"
},
"devDependencies": {
"react-test-renderer": "^16.7.0",
"babel-preset-expo": "^5.0.0",
"expo-module-scripts": "^1.0.0"
"expo-module-scripts": "^1.0.0",
"react-test-renderer": "^16.7.0"
},
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a"
"gitHead": "211a7a3ce4007e7aa10ccf6efac4b5333ec31d0a"
}

@@ -14,3 +14,3 @@ # expo-gl

For bare React Native projects, you must ensure that you have [installed and configured the `@unimodules/core` package](https://github.com/unimodules/core) before continuing.
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing.

@@ -29,35 +29,10 @@ ### Install expo-gl-cpp

Add the dependency to your `Podfile` and then run `pod install`.
Run `pod install` in the ios directory after installing the npm package.
```ruby
pod 'EXGL', path: '../node_modules/expo-gl/ios'
```
### Configure for Android
1. Append the following lines to `android/settings.gradle`:
No additional set up necessary.
```gradle
include ':expo-gl'
project(':expo-gl').projectDir = new File(rootProject.projectDir, '../node_modules/expo-gl/android')
```
2. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```gradle
api project(':expo-gl')
```
3. In `MainApplication.java`, import the package and add it to the `ReactModuleRegistryProvider` list:
```java
import expo.modules.gl.GLPackage;
```
```java
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
// Your other packages will be here
new GLPackage()
), Arrays.<SingletonModule>asList());
```
# Contributing
Contributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing).
import { ViewProps } from 'react-native';
import WebGL2RenderingContext from './WebGL2RenderingContext'
export type SurfaceCreateEvent = {

@@ -29,3 +31,4 @@ nativeEvent: {

export interface ExpoWebGLRenderingContext extends WebGLRenderingContext {
export interface ExpoWebGLRenderingContext extends WebGL2RenderingContext {
__exglCtxId: number;
endFrameEXP(): void;

@@ -32,0 +35,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc