[change] don't prefix HTML id's with underscore

This commit is contained in:
Nicolas Gallagher
2016-11-23 10:28:20 -08:00
parent e76d5a4e6c
commit 049edc4611
2 changed files with 2 additions and 2 deletions

View File

@@ -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());
});
});

View File

@@ -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 };