Commit 7dbb63c6 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

fix key of uniform content

parent f952d130
...@@ -13,7 +13,6 @@ const GLCanvas = requireNativeComponent("GLCanvas", null); ...@@ -13,7 +13,6 @@ const GLCanvas = requireNativeComponent("GLCanvas", null);
const renderVcontent = function (width, height, id, children) { const renderVcontent = function (width, height, id, children) {
const childrenStyle = { const childrenStyle = {
key: id,
position: "absolute", position: "absolute",
top: 0, top: 0,
left: 0, left: 0,
...@@ -21,7 +20,7 @@ const renderVcontent = function (width, height, id, children) { ...@@ -21,7 +20,7 @@ const renderVcontent = function (width, height, id, children) {
height: height, height: height,
overflow: "hidden" overflow: "hidden"
}; };
return <View style={childrenStyle}>{children}</View>; return <View key={id} style={childrenStyle}>{children}</View>;
}; };
const renderVGL = function (props) { const renderVGL = function (props) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment