We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44916b8 commit f0f92f1Copy full SHA for f0f92f1
react-native-scripts/src/bin/crna-entry.js
@@ -1,4 +1,25 @@
1
-import Expo from 'expo';
+import Expo, {
2
+ Components
3
+} from 'expo';
4
import App from '../../../../App';
5
+import React from 'react';
6
+import {
7
+ View
8
+} from 'react-native';
9
-Expo.registerRootComponent(App);
10
+// we don't want this to require transformation
11
+class AwakeApp extends React.Component {
12
+ render() {
13
+ return React.createElement(
14
+ View, {
15
+ style: {
16
+ flex: 1,
17
+ }
18
+ },
19
+ React.createElement(App, null),
20
+ React.createElement(Components.KeepAwake, null),
21
+ );
22
23
+}
24
+
25
+Expo.registerRootComponent(AwakeApp);
0 commit comments