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
735eee2e
Commit
735eee2e
authored
Oct 19, 2015
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #21
parent
3cca570a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
RNGL/GLCanvas.m
RNGL/GLCanvas.m
+9
-13
No files found.
RNGL/GLCanvas.m
View file @
735eee2e
...
@@ -418,22 +418,18 @@ RCT_NOT_IMPLEMENTED(-init)
...
@@ -418,22 +418,18 @@ RCT_NOT_IMPLEMENTED(-init)
-
(
void
)
dispatchOnLoad
-
(
void
)
dispatchOnLoad
{
{
if
(
_onLoad
)
{
[
_bridge
.
eventDispatcher
sendInputEventWithName
:
@"load"
body
:@{
@"target"
:
self
.
reactTag
}];
[
_bridge
.
eventDispatcher
sendInputEventWithName
:
@"load"
body
:@{
@"target"
:
self
.
reactTag
}];
}
}
}
-
(
void
)
dispatchOnProgress
:
(
double
)
progress
withLoaded
:(
int
)
loaded
withTotal
:(
int
)
total
-
(
void
)
dispatchOnProgress
:
(
double
)
progress
withLoaded
:(
int
)
loaded
withTotal
:(
int
)
total
{
{
if
(
_onProgress
)
{
NSDictionary
*
event
=
NSDictionary
*
event
=
@{
@{
@"target"
:
self
.
reactTag
,
@"target"
:
self
.
reactTag
,
@"progress"
:
@
(
progress
),
@"progress"
:
@
(
progress
),
@"loaded"
:
@
(
loaded
),
@"loaded"
:
@
(
loaded
),
@"total"
:
@
(
total
)
};
@"total"
:
@
(
total
)
};
[
_bridge
.
eventDispatcher
sendInputEventWithName
:
@"progress"
body
:
event
];
[
_bridge
.
eventDispatcher
sendInputEventWithName
:
@"progress"
body
:
event
];
}
}
}
@end
@end
\ No newline at end of file
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