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
42ff87b3
Commit
42ff87b3
authored
Sep 15, 2016
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port example to RN 0.33
parent
e7c7335b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
31 deletions
+25
-31
example/android/app/app.iml
example/android/app/app.iml
+11
-10
example/android/app/src/main/java/com/example/MainActivity.java
...e/android/app/src/main/java/com/example/MainActivity.java
+0
-9
example/package.json
example/package.json
+3
-3
example/src/AdvancedEffects/Intro.js
example/src/AdvancedEffects/Intro.js
+1
-1
example/src/Simple/index.js
example/src/Simple/index.js
+6
-4
example/src/Tests/index.js
example/src/Tests/index.js
+4
-4
No files found.
example/android/app/app.iml
View file @
42ff87b3
...
...
@@ -64,14 +64,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/assets"
type=
"java-test-resource"
/>
...
...
@@ -80,6 +72,14 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/builds"
/>
...
...
@@ -95,7 +95,7 @@
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-base/0.11.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-okhttp3/0.11.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.11.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.react/react-native/0.3
2
.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.react/react-native/0.3
3
.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.soloader/soloader/0.1.0/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/org.webkit/android-jsc/r174650/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental"
/>
...
...
@@ -126,17 +126,18 @@
<orderEntry
type=
"library"
exported=
""
name=
"fresco-0.11.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"drawee-0.11.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"soloader-0.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"javax.inject-1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"jsr305-3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"jackson-core-2.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"bolts-tasks-1.4.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"recyclerview-v7-23.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"okhttp-urlconnection-3.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"okhttp-ws-3.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"react-native-0.33.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"android-jsc-r174650"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"okhttp-3.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"support-v4-23.2.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"imagepipeline-okhttp3-0.11.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"react-native-0.32.0"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"support-annotations-23.2.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"appcompat-v7-23.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
exported=
""
name=
"fbcore-0.11.0"
level=
"project"
/>
...
...
example/android/app/src/main/java/com/example/MainActivity.java
View file @
42ff87b3
...
...
@@ -20,13 +20,4 @@ public class MainActivity extends ReactActivity {
protected
String
getMainComponentName
()
{
return
"example"
;
}
/**
* Returns whether dev mode should be enabled.
* This enables e.g. the dev menu.
*/
@Override
protected
boolean
getUseDeveloperSupport
()
{
return
BuildConfig
.
DEBUG
;
}
}
example/package.json
View file @
42ff87b3
...
...
@@ -7,12 +7,12 @@
},
"dependencies"
:
{
"crypto"
:
"0.0.3"
,
"gl-react"
:
"2.2.
4
"
,
"gl-react"
:
"2.2.
6
"
,
"gl-react-blur"
:
"^1.3.0"
,
"gl-react-native"
:
"file:.."
,
"glsl-transitions"
:
"^2016.2.15"
,
"react"
:
"15.3.
0
"
,
"react-native"
:
"0.3
2
.0"
,
"react"
:
"15.3.
1
"
,
"react-native"
:
"0.3
3
.0"
,
"react-native-fs"
:
"1.5.1"
,
"react-native-material-kit"
:
"PyYoshi/react-native-material-kit#rn-0.25.1"
,
"seedrandom"
:
"gre/seedrandom#released"
...
...
example/src/AdvancedEffects/Intro.js
View file @
42ff87b3
...
...
@@ -55,7 +55,7 @@ class Intro extends React.Component {
moving
:
1
}}
>
<
GL
.
Uniform
name
=
"
texture
"
>
<
View
style
=
{{
flex
:
1
,
justifyContent
:
"
center
"
,
backgroundColor
:
"
#111
"
}}
>
<
View
key
=
"
root
"
style
=
{{
flex
:
1
,
justifyContent
:
"
center
"
,
backgroundColor
:
"
#111
"
}}
>
<
Text
style
=
{{
color
:
"
#00BDF3
"
,
fontSize
:
32
,
letterSpacing
:
-
1.0
}}
>
GL
REACT
NATIVE
<
/Text
>
...
...
example/src/Simple/index.js
View file @
42ff87b3
...
...
@@ -166,9 +166,11 @@ class Simple extends Component {
<
Demo
id
=
{
3
}
current
=
{
current
}
title
=
"
3. Hue Rotate on Text+Image
"
>
<
Surface
autoRedraw
width
=
{
256
}
height
=
{
180
}
>
<
HueRotate
hue
=
{
hue
}
>
<
View
key
=
"
hue
"
style
=
{{
width
:
256
,
height
:
180
}}
>
<
Image
style
=
{{
width
:
256
,
height
:
244
}}
source
=
{{
uri
:
"
http://i.imgur.com/qVxHrkY.jpg
"
}}
/
>
<
Text
style
=
{
styles
.
demoText1
}
>
Throw
me
to
the
wolves
<
/Text
>
<
Text
style
=
{
styles
.
demoText2
}
>
{
text
}
<
/Text
>
<
/View
>
<
/HueRotate
>
<
/Surface
>
<
Slider
...
...
@@ -241,7 +243,7 @@ class Simple extends Component {
visibleContent
>
<
HueRotate
hue
=
{
-
switch1
+
2
*
switch2
+
4
*
switch3
}
>
<
Blur
factor
=
{
factor
}
>
<
View
style
=
{{
width
:
256
,
height
:
160
,
padding
:
10
,
backgroundColor
:
"
#f9f9f9
"
}}
>
<
View
key
=
"
blur
"
style
=
{{
width
:
256
,
height
:
160
,
padding
:
10
,
backgroundColor
:
"
#f9f9f9
"
}}
>
<
Slider
style
=
{{
height
:
80
}}
max
=
{
1
}
...
...
example/src/Tests/index.js
View file @
42ff87b3
...
...
@@ -35,7 +35,7 @@ class Tests extends React.Component {
<
HelloGL
width
=
{
64
}
height
=
{
64
}
/>
;
const
txt
=
<
View
style
=
{{
width
:
400
,
height
:
400
,
position
:
"
relative
"
,
backgroundColor
:
"
transparent
"
}}
>
<
View
key
=
"
txt
"
style
=
{{
width
:
400
,
height
:
400
,
position
:
"
relative
"
,
backgroundColor
:
"
transparent
"
}}
>
{[
0
,
1
,
2
,
3
].
map
(
i
=>
<
Text
key
=
{
i
}
style
=
{{
position
:
"
absolute
"
,
top
:
20
+
100
*
i
,
...
...
@@ -86,12 +86,12 @@ class Tests extends React.Component {
<
View
style
=
{{
flexDirection
:
"
row
"
,
flexWrap
:
"
wrap
"
}}
>
<
NativeLayer
width
=
{
debugSize
}
height
=
{
debugSize
}
>
<
Image
source
=
{{
uri
:
"
http://i.imgur.com/S22HNaU.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
Image
source
=
{{
uri
:
"
http://i.imgur.com/mp79p5T.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
Image
key
=
{
0
}
source
=
{{
uri
:
"
http://i.imgur.com/S22HNaU.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
Image
key
=
{
1
}
source
=
{{
uri
:
"
http://i.imgur.com/mp79p5T.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
/NativeLayer
>
<
NativeLayer
width
=
{
debugSize
}
height
=
{
debugSize
}
>
<
Image
source
=
{{
uri
:
"
http://i.imgur.com/S22HNaU.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
Image
key
=
{
0
}
source
=
{{
uri
:
"
http://i.imgur.com/S22HNaU.png
"
}}
width
=
{
debugSize
}
height
=
{
debugSize
}
/
>
<
Surface
width
=
{
debugSize
}
height
=
{
debugSize
}
backgroundColor
=
"
transparent
"
>
<
Copy
last
>
<
Copy
>
...
...
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