From 049edc46111c1923b77e6262cb7960de5c34e32a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 23 Nov 2016 10:28:20 -0800 Subject: [PATCH] [change] don't prefix HTML id's with underscore --- src/apis/StyleSheet/__tests__/index-test.js | 2 +- src/apis/StyleSheet/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/StyleSheet/__tests__/index-test.js b/src/apis/StyleSheet/__tests__/index-test.js index dbffb76f..b1cff0bd 100644 --- a/src/apis/StyleSheet/__tests__/index-test.js +++ b/src/apis/StyleSheet/__tests__/index-test.js @@ -35,7 +35,7 @@ describe('apis/StyleSheet', () => { test('renders a style sheet in the browser', () => { StyleSheet.create({ root: { color: 'red' } }); - expect(document.getElementById('__react-native-style').textContent).toEqual(getDefaultStyleSheet()); + expect(document.getElementById('react-native-style__').textContent).toEqual(getDefaultStyleSheet()); }); }); diff --git a/src/apis/StyleSheet/index.js b/src/apis/StyleSheet/index.js index d88fca43..a8550ba5 100644 --- a/src/apis/StyleSheet/index.js +++ b/src/apis/StyleSheet/index.js @@ -8,7 +8,7 @@ import ReactNativePropRegistry from '../../modules/ReactNativePropRegistry'; let styleElement; let shouldInsertStyleSheet = ExecutionEnvironment.canUseDOM; -const STYLE_SHEET_ID = '__react-native-style'; +const STYLE_SHEET_ID = 'react-native-style__'; const absoluteFillObject = { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0 };