[fix] AppRegistry.getApplication style element keys

Fix #734
This commit is contained in:
Nicolas Gallagher
2017-12-18 15:26:18 +00:00
parent 034108a2a0
commit f1ce6c2acb
+1 -1
View File
@@ -38,7 +38,7 @@ export function getApplication(RootComponent: ComponentType<Object>, initialProp
);
const stylesheets = StyleSheet.getStyleSheets().map(sheet => (
// ensure that CSS text is not escaped
<style dangerouslySetInnerHTML={{ __html: sheet.textContent }} id={sheet.id} />
<style dangerouslySetInnerHTML={{ __html: sheet.textContent }} id={sheet.id} key={sheet.id} />
));
return { element, stylesheets };
}