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
f1beeb08
Commit
f1beeb08
authored
Apr 27, 2017
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a preserveImages prop that allows the (iOS) impl to keep images
parent
cb37fd45
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
ios/GLCanvas.h
ios/GLCanvas.h
+1
-0
ios/GLCanvas.m
ios/GLCanvas.m
+4
-1
ios/GLCanvasManager.m
ios/GLCanvasManager.m
+2
-1
No files found.
ios/GLCanvas.h
View file @
f1beeb08
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
@property
(
nonatomic
)
BOOL
autoRedraw
;
@property
(
nonatomic
)
BOOL
autoRedraw
;
@property
(
nonatomic
)
BOOL
eventsThrough
;
@property
(
nonatomic
)
BOOL
eventsThrough
;
@property
(
nonatomic
)
BOOL
visibleContent
;
@property
(
nonatomic
)
BOOL
visibleContent
;
@property
(
nonatomic
)
BOOL
preserveImages
;
@property
(
nonatomic
)
NSNumber
*
nbContentTextures
;
@property
(
nonatomic
)
NSNumber
*
nbContentTextures
;
@property
(
nonatomic
)
NSNumber
*
renderId
;
@property
(
nonatomic
)
NSNumber
*
renderId
;
@property
(
nonatomic
)
NSNumber
*
pixelRatio
;
@property
(
nonatomic
)
NSNumber
*
pixelRatio
;
...
...
ios/GLCanvas.m
View file @
f1beeb08
...
@@ -183,7 +183,10 @@ RCT_NOT_IMPLEMENTED(-init)
...
@@ -183,7 +183,10 @@ RCT_NOT_IMPLEMENTED(-init)
@autoreleasepool
{
@autoreleasepool
{
NSDictionary
*
prevImages
=
_images
;
NSDictionary
*
prevImages
=
_images
;
NSMutableDictionary
*
images
=
[[
NSMutableDictionary
alloc
]
init
];
NSMutableDictionary
*
images
=
self
.
preserveImages
?
_images
.
mutableCopy
:
[[
NSMutableDictionary
alloc
]
init
];
GLRenderData
*
(
^
traverseTree
)
(
GLData
*
data
);
GLRenderData
*
(
^
traverseTree
)
(
GLData
*
data
);
__block
__weak
GLRenderData
*
(
^
weak_traverseTree
)(
GLData
*
data
);
__block
__weak
GLRenderData
*
(
^
weak_traverseTree
)(
GLData
*
data
);
...
...
ios/GLCanvasManager.m
View file @
f1beeb08
...
@@ -25,6 +25,7 @@ RCT_EXPORT_MODULE();
...
@@ -25,6 +25,7 @@ RCT_EXPORT_MODULE();
RCT_EXPORT_VIEW_PROPERTY
(
nbContentTextures
,
NSNumber
);
RCT_EXPORT_VIEW_PROPERTY
(
nbContentTextures
,
NSNumber
);
RCT_EXPORT_VIEW_PROPERTY
(
autoRedraw
,
BOOL
);
RCT_EXPORT_VIEW_PROPERTY
(
autoRedraw
,
BOOL
);
RCT_EXPORT_VIEW_PROPERTY
(
preserveImages
,
BOOL
);
RCT_EXPORT_VIEW_PROPERTY
(
data
,
GLData
);
RCT_EXPORT_VIEW_PROPERTY
(
data
,
GLData
);
RCT_EXPORT_VIEW_PROPERTY
(
renderId
,
NSNumber
);
RCT_EXPORT_VIEW_PROPERTY
(
renderId
,
NSNumber
);
RCT_EXPORT_VIEW_PROPERTY
(
pixelRatio
,
NSNumber
);
RCT_EXPORT_VIEW_PROPERTY
(
pixelRatio
,
NSNumber
);
...
...
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