forked from rastapasta/react-native-gl-model-view
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc25eb
commit 2cd597d
Showing
9 changed files
with
60 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
|
||
# react-native-gl-model-viewer | ||
# react-native-gl-model-view | ||
|
||
## Getting started | ||
|
||
`$ npm install react-native-gl-model-viewer --save` | ||
`$ npm install react-native-gl-model-view --save` | ||
|
||
### Mostly automatic installation | ||
|
||
`$ react-native link react-native-gl-model-viewer` | ||
`$ react-native link react-native-gl-model-view` | ||
|
||
### Manual installation | ||
|
||
|
||
#### iOS | ||
|
||
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` | ||
2. Go to `node_modules` ➜ `react-native-gl-model-viewer` and add `RNGLModelViewer.xcodeproj` | ||
3. In XCode, in the project navigator, select your project. Add `libRNGLModelViewer.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` | ||
2. Go to `node_modules` ➜ `react-native-gl-model-view` and add `RNGLModelView.xcodeproj` | ||
3. In XCode, in the project navigator, select your project. Add `libRNGLModelView.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` | ||
|
||
## Usage | ||
```javascript | ||
import RNGLModelViewer from 'react-native-gl-model-viewer'; | ||
import RNGLModelView from 'react-native-gl-model-view'; | ||
|
||
// TODO: What to do with the module? | ||
RNGLModelViewer; | ||
RNGLModelView; | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
import { NativeModules } from 'react-native'; | ||
|
||
const { RNGLModelViewer } = NativeModules; | ||
const { RNGLModelView } = NativeModules; | ||
|
||
export default RNGLModelViewer; | ||
export default RNGLModelView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "RNGLModelViewer" | ||
s.name = "RNGLModelView" | ||
s.version = "1.0.0" | ||
s.summary = "React Native native bridge to GLView - display and animate Wavefront .OBJ 3D models" | ||
s.description = <<-DESC | ||
react-native-gl-model-viewer | ||
react-native-gl-model-view | ||
DESC | ||
s.homepage = "" | ||
s.license = "MIT" | ||
s.license = { :type => "MIT", :file => "FILE_LICENSE" } | ||
s.author = { "author" => "Michael Straßburger <[email protected]>" } | ||
s.platform = :ios, "7.0" | ||
s.source = { :git => "https://github.com/rastaoasta/react-native-gl-model-viewer.git", :tag => "master" } | ||
s.source_files = "RNGLModelViewer/**/*.{h,m}" | ||
s.source = { :git => "https://github.com/rastaoasta/react-native-gl-model-view.git", :tag => "master" } | ||
s.source_files = "RNGLModelView/**/*.{h,m}" | ||
s.requires_arc = true | ||
|
||
s.dependency "React" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
{ | ||
"name": "react-native-gl-model-viewer", | ||
"name": "react-native-gl-model-view", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
|
@@ -9,15 +9,15 @@ | |
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rastapasta/react-native-gl-model-viewer.git" | ||
"url": "https://github.com/rastapasta/react-native-gl-model-view.git" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"native", | ||
"bridge", | ||
"opengl", | ||
"model", | ||
"viewer" | ||
"View" | ||
], | ||
"author": "Michael Straßburger <[email protected]>", | ||
"license": "MIT", | ||
|