footer.js 617 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
/* @flow */
import { applyStyles } from '../utils/dom/css';
import { footerStyle } from '../styles';

function createFooter(document: Document) {
  const div = document.createElement('div');
  applyStyles(div, footerStyle);
  div.appendChild(
    document.createTextNode(
10
      'This screen is visible only in development. It will not appear if the app crashes in production.'
11
12
13
14
15
16
17
18
19
20
21
22
    )
  );
  div.appendChild(document.createElement('br'));
  div.appendChild(
    document.createTextNode(
      'Open your browser’s developer console to further inspect this error.'
    )
  );
  return div;
}

export { createFooter };