|
1 | | -"use strict"; |
2 | | -import React, { useEffect, useState } from "react"; |
3 | | -import { ScrollView, StyleSheet, Text, View } from "react-native"; |
| 1 | +'use strict'; |
| 2 | +import React, { useEffect, useState } from 'react'; |
| 3 | +import { ScrollView, StyleSheet, Text, View } from 'react-native'; |
4 | 4 | import Animated, { |
5 | 5 | FadeOut, |
6 | 6 | LayoutAnimationConfig, |
7 | | -} from "react-native-reanimated"; |
8 | | -import { runOnUI } from "react-native-worklets"; |
| 7 | +} from 'react-native-reanimated'; |
| 8 | +import { runOnUI } from 'react-native-worklets'; |
9 | 9 |
|
10 | 10 | // Repro for https://github.com/software-mansion/react-native-reanimated/issues/7493 |
11 | 11 | // |
@@ -44,7 +44,7 @@ export default function InterruptedExitingExample() { |
44 | 44 | // Stall the UI thread. Everything below happens on the JS thread |
45 | 45 | // before the UI thread gets to run again. |
46 | 46 | runOnUI(() => { |
47 | | - "worklet"; |
| 47 | + 'worklet'; |
48 | 48 | const start = performance.now(); |
49 | 49 | while (performance.now() - start < 600) { |
50 | 50 | // burn |
@@ -100,19 +100,19 @@ export default function InterruptedExitingExample() { |
100 | 100 |
|
101 | 101 | const styles = StyleSheet.create({ |
102 | 102 | container: { flex: 1 }, |
103 | | - title: { padding: 16, fontWeight: "bold" }, |
104 | | - stage: { height: 130, alignItems: "center", justifyContent: "center" }, |
| 103 | + title: { padding: 16, fontWeight: 'bold' }, |
| 104 | + stage: { height: 130, alignItems: 'center', justifyContent: 'center' }, |
105 | 105 | screen: { |
106 | 106 | width: 220, |
107 | 107 | height: 120, |
108 | | - backgroundColor: "#eee", |
109 | | - alignItems: "center", |
110 | | - justifyContent: "center", |
| 108 | + backgroundColor: '#eee', |
| 109 | + alignItems: 'center', |
| 110 | + justifyContent: 'center', |
111 | 111 | }, |
112 | 112 | box: { |
113 | 113 | width: 90, |
114 | 114 | height: 90, |
115 | | - backgroundColor: "rebeccapurple", |
| 115 | + backgroundColor: 'rebeccapurple', |
116 | 116 | borderRadius: 8, |
117 | 117 | }, |
118 | 118 | scroll: { flex: 1 }, |
|
0 commit comments