Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl-react-native-v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
gl-react-native-v2
Commits
99972cd9
Commit
99972cd9
authored
Jul 02, 2016
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
https://github.com/ProjectSeptemberInc/gl-react/issues/64
parent
54af3133
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/index.js
src/index.js
+2
-0
src/makeSurface.js
src/makeSurface.js
+1
-0
No files found.
src/index.js
View file @
99972cd9
...
@@ -46,6 +46,7 @@ module.exports = {
...
@@ -46,6 +46,7 @@ module.exports = {
Surface
:
makeSurface
({
Surface
:
makeSurface
({
View
,
View
,
GLCanvas
,
GLCanvas
,
getGLCanvas
:
glSurface
=>
glSurface
.
refs
.
canvas
,
dimensionInvariant
:
(
value
,
field
)
=>
dimensionInvariant
:
(
value
,
field
)
=>
isAnimated
(
value
)
isAnimated
(
value
)
?
invariant
(
false
,
"
GL.Surface
"
+
field
+
"
prop cannot be an Animated object. Use GL.AnimatedSurface instead
"
)
?
invariant
(
false
,
"
GL.Surface
"
+
field
+
"
prop cannot be an Animated object. Use GL.AnimatedSurface instead
"
)
...
@@ -54,6 +55,7 @@ module.exports = {
...
@@ -54,6 +55,7 @@ module.exports = {
AnimatedSurface
:
makeSurface
({
AnimatedSurface
:
makeSurface
({
View
:
Animated
.
View
,
View
:
Animated
.
View
,
GLCanvas
:
Animated
.
createAnimatedComponent
(
GLCanvas
),
GLCanvas
:
Animated
.
createAnimatedComponent
(
GLCanvas
),
getGLCanvas
:
glSurface
=>
glSurface
.
refs
.
canvas
.
refs
.
node
,
dimensionInvariant
:
(
value
,
field
)
=>
dimensionInvariant
:
(
value
,
field
)
=>
invariant
(
invariant
(
isAnimated
(
value
)
||
typeof
value
===
"
number
"
&&
value
>
0
,
isAnimated
(
value
)
||
typeof
value
===
"
number
"
&&
value
>
0
,
...
...
src/makeSurface.js
View file @
99972cd9
...
@@ -50,5 +50,6 @@ export default C => {
...
@@ -50,5 +50,6 @@ export default C => {
renderVcontent
,
renderVcontent
,
renderVGL
,
renderVGL
,
getPixelRatio
,
getPixelRatio
,
C
.
getGLCanvas
,
);
);
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment