@office-iss/react-native-win32 0.0.0-canary.256 → 0.0.0-canary.257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.flowconfig +1 -1
  2. package/CHANGELOG.json +40 -1
  3. package/CHANGELOG.md +20 -8
  4. package/Libraries/Core/ReactNativeVersion.js +1 -1
  5. package/Libraries/Core/setUpTimers.js +19 -0
  6. package/Libraries/LogBox/Data/LogBoxData.js +39 -4
  7. package/Libraries/LogBox/Data/LogBoxLog.js +5 -2
  8. package/Libraries/LogBox/Data/parseLogBoxLog.js +22 -1
  9. package/Libraries/LogBox/LogBox.js +29 -12
  10. package/Libraries/LogBox/LogBoxNotificationContainer.js +4 -0
  11. package/Libraries/LogBox/UI/LogBoxInspector.js +8 -70
  12. package/Libraries/LogBox/UI/LogBoxInspectorBody.js +87 -0
  13. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +6 -42
  14. package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +58 -0
  15. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +5 -66
  16. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +7 -72
  17. package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +76 -0
  18. package/Libraries/LogBox/UI/LogBoxNotification.js +13 -152
  19. package/Libraries/LogBox/UI/LogBoxNotificationCountBadge.js +63 -0
  20. package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +67 -0
  21. package/Libraries/LogBox/UI/LogBoxNotificationMessage.js +57 -0
  22. package/Libraries/Renderer/implementations/ReactFabric-dev.js +15690 -26405
  23. package/Libraries/Renderer/implementations/ReactFabric-prod.js +2675 -1630
  24. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2945 -1682
  25. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16141 -27018
  26. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2723 -1666
  27. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +2984 -1737
  28. package/Libraries/Share/Share.d.ts +16 -10
  29. package/Libraries/Share/Share.js +14 -15
  30. package/Libraries/Text/Text.js +25 -20
  31. package/Libraries/Text/Text.win32.js +25 -20
  32. package/Libraries/Text/TextNativeComponent.js +1 -1
  33. package/Libraries/Text/TextNativeComponent.win32.js +1 -1
  34. package/Libraries/Text/TextOptimized.js +538 -0
  35. package/Libraries/Utilities/ReactNativeTestTools.js +7 -24
  36. package/Libraries/__tests__/ButtonWin32-test.js +7 -6
  37. package/Libraries/promiseRejectionTrackingOptions.js +1 -0
  38. package/jest/renderer.js +25 -14
  39. package/jest/setup.js +5 -0
  40. package/overrides.json +5 -5
  41. package/package.json +19 -19
  42. package/src/private/specs/modules/NativeDevSettings.js +1 -0
  43. package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +34 -0
@@ -10,21 +10,20 @@
10
10
 
11
11
  import type {LogLevel} from '../Data/LogBoxLog';
12
12
 
13
- import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
14
13
  import View from '../../Components/View/View';
15
14
  import StyleSheet from '../../StyleSheet/StyleSheet';
16
15
  import Text from '../../Text/Text';
17
- import LogBoxButton from './LogBoxButton';
16
+ import LogBoxInspectorFooterButton from './LogBoxInspectorFooterButton';
18
17
  import * as LogBoxStyle from './LogBoxStyle';
19
18
  import * as React from 'react';
20
19
 
21
- type Props = $ReadOnly<{|
20
+ type Props = $ReadOnly<{
22
21
  onDismiss: () => void,
23
22
  onMinimize: () => void,
24
23
  level?: ?LogLevel,
25
- |}>;
24
+ }>;
26
25
 
27
- function LogBoxInspectorFooter(props: Props): React.Node {
26
+ export default function LogBoxInspectorFooter(props: Props): React.Node {
28
27
  if (props.level === 'syntax') {
29
28
  return (
30
29
  <View style={styles.root}>
@@ -39,34 +38,12 @@ function LogBoxInspectorFooter(props: Props): React.Node {
39
38
 
40
39
  return (
41
40
  <View style={styles.root}>
42
- <FooterButton text="Dismiss" onPress={props.onDismiss} />
43
- <FooterButton text="Minimize" onPress={props.onMinimize} />
41
+ <LogBoxInspectorFooterButton text="Dismiss" onPress={props.onDismiss} />
42
+ <LogBoxInspectorFooterButton text="Minimize" onPress={props.onMinimize} />
44
43
  </View>
45
44
  );
46
45
  }
47
46
 
48
- type ButtonProps = $ReadOnly<{|
49
- onPress: () => void,
50
- text: string,
51
- |}>;
52
-
53
- function FooterButton(props: ButtonProps): React.Node {
54
- return (
55
- <SafeAreaView style={styles.button}>
56
- <LogBoxButton
57
- backgroundColor={{
58
- default: 'transparent',
59
- pressed: LogBoxStyle.getBackgroundDarkColor(),
60
- }}
61
- onPress={props.onPress}>
62
- <View style={styles.buttonContent}>
63
- <Text style={styles.buttonLabel}>{props.text}</Text>
64
- </View>
65
- </LogBoxButton>
66
- </SafeAreaView>
67
- );
68
- }
69
-
70
47
  const styles = StyleSheet.create({
71
48
  root: {
72
49
  backgroundColor: LogBoxStyle.getBackgroundColor(1),
@@ -79,17 +56,6 @@ const styles = StyleSheet.create({
79
56
  button: {
80
57
  flex: 1,
81
58
  },
82
- buttonContent: {
83
- alignItems: 'center',
84
- height: 48,
85
- justifyContent: 'center',
86
- },
87
- buttonLabel: {
88
- color: LogBoxStyle.getTextColor(1),
89
- fontSize: 14,
90
- includeFontPadding: false,
91
- lineHeight: 20,
92
- },
93
59
  syntaxErrorText: {
94
60
  textAlign: 'center',
95
61
  width: '100%',
@@ -102,5 +68,3 @@ const styles = StyleSheet.create({
102
68
  color: LogBoxStyle.getTextColor(0.6),
103
69
  },
104
70
  });
105
-
106
- export default LogBoxInspectorFooter;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ */
10
+
11
+ import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
12
+ import View from '../../Components/View/View';
13
+ import StyleSheet from '../../StyleSheet/StyleSheet';
14
+ import Text from '../../Text/Text';
15
+ import LogBoxButton from './LogBoxButton';
16
+ import * as LogBoxStyle from './LogBoxStyle';
17
+ import * as React from 'react';
18
+
19
+ type ButtonProps = $ReadOnly<{
20
+ onPress: () => void,
21
+ text: string,
22
+ }>;
23
+
24
+ export default function LogBoxInspectorFooterButton(
25
+ props: ButtonProps,
26
+ ): React.Node {
27
+ return (
28
+ <SafeAreaView style={styles.button}>
29
+ <LogBoxButton
30
+ backgroundColor={{
31
+ default: 'transparent',
32
+ pressed: LogBoxStyle.getBackgroundDarkColor(),
33
+ }}
34
+ onPress={props.onPress}>
35
+ <View style={styles.buttonContent}>
36
+ <Text style={styles.buttonLabel}>{props.text}</Text>
37
+ </View>
38
+ </LogBoxButton>
39
+ </SafeAreaView>
40
+ );
41
+ }
42
+
43
+ const styles = StyleSheet.create({
44
+ button: {
45
+ flex: 1,
46
+ },
47
+ buttonContent: {
48
+ alignItems: 'center',
49
+ height: 48,
50
+ justifyContent: 'center',
51
+ },
52
+ buttonLabel: {
53
+ color: LogBoxStyle.getTextColor(1),
54
+ fontSize: 14,
55
+ includeFontPadding: false,
56
+ lineHeight: 20,
57
+ },
58
+ });
@@ -8,26 +8,25 @@
8
8
  * @format
9
9
  */
10
10
 
11
- import type {ImageSource} from '../../Image/ImageSource';
12
11
  import type {LogLevel} from '../Data/LogBoxLog';
13
12
 
14
13
  import StatusBar from '../../Components/StatusBar/StatusBar';
15
14
  import View from '../../Components/View/View';
16
- import Image from '../../Image/Image';
17
15
  import StyleSheet from '../../StyleSheet/StyleSheet';
18
16
  import Text from '../../Text/Text';
19
17
  import Platform from '../../Utilities/Platform';
20
- import LogBoxButton from './LogBoxButton';
18
+ import LogBoxInspectorHeaderButton from './LogBoxInspectorHeaderButton';
21
19
  import * as LogBoxStyle from './LogBoxStyle';
22
20
  import * as React from 'react';
23
- type Props = $ReadOnly<{|
21
+
22
+ type Props = $ReadOnly<{
24
23
  onSelectIndex: (selectedIndex: number) => void,
25
24
  selectedIndex: number,
26
25
  total: number,
27
26
  level: LogLevel,
28
- |}>;
27
+ }>;
29
28
 
30
- function LogBoxInspectorHeader(props: Props): React.Node {
29
+ export default function LogBoxInspectorHeader(props: Props): React.Node {
31
30
  if (props.level === 'syntax') {
32
31
  return (
33
32
  <View style={[styles.safeArea, styles[props.level]]}>
@@ -70,64 +69,6 @@ function LogBoxInspectorHeader(props: Props): React.Node {
70
69
  );
71
70
  }
72
71
 
73
- const backgroundForLevel = (level: LogLevel) =>
74
- ({
75
- warn: {
76
- default: 'transparent',
77
- pressed: LogBoxStyle.getWarningDarkColor(),
78
- },
79
- error: {
80
- default: 'transparent',
81
- pressed: LogBoxStyle.getErrorDarkColor(),
82
- },
83
- fatal: {
84
- default: 'transparent',
85
- pressed: LogBoxStyle.getFatalDarkColor(),
86
- },
87
- syntax: {
88
- default: 'transparent',
89
- pressed: LogBoxStyle.getFatalDarkColor(),
90
- },
91
- })[level];
92
-
93
- function LogBoxInspectorHeaderButton(
94
- props: $ReadOnly<{|
95
- disabled: boolean,
96
- image: ImageSource,
97
- level: LogLevel,
98
- onPress?: ?() => void,
99
- |}>,
100
- ): React.Node {
101
- return (
102
- <LogBoxButton
103
- backgroundColor={backgroundForLevel(props.level)}
104
- onPress={props.disabled ? null : props.onPress}
105
- style={headerStyles.button}>
106
- {props.disabled ? null : (
107
- <Image source={props.image} style={headerStyles.buttonImage} />
108
- )}
109
- </LogBoxButton>
110
- );
111
- }
112
-
113
- const headerStyles = StyleSheet.create({
114
- button: {
115
- alignItems: 'center',
116
- aspectRatio: 1,
117
- justifyContent: 'center',
118
- marginTop: 5,
119
- marginRight: 6,
120
- marginLeft: 6,
121
- marginBottom: -8,
122
- borderRadius: 3,
123
- },
124
- buttonImage: {
125
- height: 14,
126
- width: 8,
127
- tintColor: LogBoxStyle.getTextColor(),
128
- },
129
- });
130
-
131
72
  const styles = StyleSheet.create({
132
73
  syntax: {
133
74
  backgroundColor: LogBoxStyle.getFatalColor(),
@@ -164,5 +105,3 @@ const styles = StyleSheet.create({
164
105
  paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 40,
165
106
  },
166
107
  });
167
-
168
- export default LogBoxInspectorHeader;
@@ -17,17 +17,18 @@ import View from '../../Components/View/View';
17
17
  import StyleSheet from '../../StyleSheet/StyleSheet';
18
18
  import Text from '../../Text/Text';
19
19
  import Platform from '../../Utilities/Platform';
20
- import LogBoxButton from './LogBoxButton';
20
+ import LogBoxInspectorHeaderButton from './LogBoxInspectorHeaderButton';
21
21
  import * as LogBoxStyle from './LogBoxStyle';
22
22
  import * as React from 'react';
23
- type Props = $ReadOnly<{|
23
+
24
+ type Props = $ReadOnly<{
24
25
  onSelectIndex: (selectedIndex: number) => void,
25
26
  selectedIndex: number,
26
27
  total: number,
27
28
  level: LogLevel,
28
- |}>;
29
+ }>;
29
30
 
30
- function LogBoxInspectorHeader(props: Props): React.Node {
31
+ export default function LogBoxInspectorHeader(props: Props): React.Node {
31
32
  if (props.level === 'syntax') {
32
33
  return (
33
34
  <View style={[styles.safeArea, styles[props.level]]}>
@@ -53,7 +54,7 @@ function LogBoxInspectorHeader(props: Props): React.Node {
53
54
  <LogBoxInspectorHeaderButton
54
55
  disabled={props.total <= 1}
55
56
  level={props.level}
56
- image={'←'}
57
+ image={new String('←')}
57
58
  onPress={() => props.onSelectIndex(prevIndex)}
58
59
  />
59
60
  <View style={styles.title}>
@@ -62,7 +63,7 @@ function LogBoxInspectorHeader(props: Props): React.Node {
62
63
  <LogBoxInspectorHeaderButton
63
64
  disabled={props.total <= 1}
64
65
  level={props.level}
65
- image={'→'}
66
+ image={new String('→')}
66
67
  onPress={() => props.onSelectIndex(nextIndex)}
67
68
  />
68
69
  </View>
@@ -70,70 +71,6 @@ function LogBoxInspectorHeader(props: Props): React.Node {
70
71
  );
71
72
  }
72
73
 
73
- const backgroundForLevel = (level: LogLevel) =>
74
- ({
75
- warn: {
76
- default: 'transparent',
77
- pressed: LogBoxStyle.getWarningDarkColor(),
78
- },
79
- error: {
80
- default: 'transparent',
81
- pressed: LogBoxStyle.getErrorDarkColor(),
82
- },
83
- fatal: {
84
- default: 'transparent',
85
- pressed: LogBoxStyle.getFatalDarkColor(),
86
- },
87
- syntax: {
88
- default: 'transparent',
89
- pressed: LogBoxStyle.getFatalDarkColor(),
90
- },
91
- })[level];
92
-
93
- function LogBoxInspectorHeaderButton(
94
- props: $ReadOnly<{|
95
- disabled: boolean,
96
- image: string,
97
- level: LogLevel,
98
- onPress?: ?() => void,
99
- |}>,
100
- ): React.Node {
101
- return (
102
- <LogBoxButton
103
- backgroundColor={backgroundForLevel(props.level)}
104
- onPress={props.disabled ? null : props.onPress}
105
- style={styles.title}>
106
- {props.disabled ? null : (
107
- <Text style={[styles.titleText, headerStyles.buttonText]}>
108
- {props.image}
109
- </Text>
110
- )}
111
- </LogBoxButton>
112
- );
113
- }
114
-
115
- const headerStyles = StyleSheet.create({
116
- button: {
117
- alignItems: 'center',
118
- aspectRatio: 1,
119
- justifyContent: 'center',
120
- marginTop: 0,
121
- marginRight: 6,
122
- marginLeft: 6,
123
- marginBottom: 0,
124
- borderRadius: 3,
125
- height: 50,
126
- width: 50,
127
- },
128
- buttonText: {
129
- fontSize: 30,
130
- },
131
- buttonImage: {
132
- fontSize: 20,
133
- color: LogBoxStyle.getTextColor(),
134
- },
135
- });
136
-
137
74
  const styles = StyleSheet.create({
138
75
  syntax: {
139
76
  backgroundColor: LogBoxStyle.getFatalColor(),
@@ -173,5 +110,3 @@ const styles = StyleSheet.create({
173
110
  paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 40,
174
111
  },
175
112
  });
176
-
177
- export default LogBoxInspectorHeader;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ */
10
+
11
+ import type {ImageSource} from '../../Image/ImageSource';
12
+ import type {LogLevel} from '../Data/LogBoxLog';
13
+
14
+ import Image from '../../Image/Image';
15
+ import StyleSheet from '../../StyleSheet/StyleSheet';
16
+ import LogBoxButton from './LogBoxButton';
17
+ import * as LogBoxStyle from './LogBoxStyle';
18
+ import * as React from 'react';
19
+
20
+ const backgroundForLevel = (level: LogLevel) =>
21
+ ({
22
+ warn: {
23
+ default: 'transparent',
24
+ pressed: LogBoxStyle.getWarningDarkColor(),
25
+ },
26
+ error: {
27
+ default: 'transparent',
28
+ pressed: LogBoxStyle.getErrorDarkColor(),
29
+ },
30
+ fatal: {
31
+ default: 'transparent',
32
+ pressed: LogBoxStyle.getFatalDarkColor(),
33
+ },
34
+ syntax: {
35
+ default: 'transparent',
36
+ pressed: LogBoxStyle.getFatalDarkColor(),
37
+ },
38
+ })[level];
39
+
40
+ export default function LogBoxInspectorHeaderButton(
41
+ props: $ReadOnly<{
42
+ disabled: boolean,
43
+ image: ImageSource,
44
+ level: LogLevel,
45
+ onPress?: ?() => void,
46
+ }>,
47
+ ): React.Node {
48
+ return (
49
+ <LogBoxButton
50
+ backgroundColor={backgroundForLevel(props.level)}
51
+ onPress={props.disabled ? null : props.onPress}
52
+ style={styles.button}>
53
+ {props.disabled ? null : (
54
+ <Image source={props.image} style={styles.buttonImage} />
55
+ )}
56
+ </LogBoxButton>
57
+ );
58
+ }
59
+
60
+ const styles = StyleSheet.create({
61
+ button: {
62
+ alignItems: 'center',
63
+ aspectRatio: 1,
64
+ justifyContent: 'center',
65
+ marginTop: 5,
66
+ marginRight: 6,
67
+ marginLeft: 6,
68
+ marginBottom: -8,
69
+ borderRadius: 3,
70
+ },
71
+ buttonImage: {
72
+ height: 14,
73
+ width: 8,
74
+ tintColor: LogBoxStyle.getTextColor(),
75
+ },
76
+ });
@@ -8,18 +8,17 @@
8
8
  * @format
9
9
  */
10
10
 
11
- import type {Message as MessageType} from '../Data/parseLogBoxLog';
12
-
13
11
  import View from '../../Components/View/View';
14
- import Image from '../../Image/Image';
15
12
  import StyleSheet from '../../StyleSheet/StyleSheet';
16
- import Text from '../../Text/Text';
17
13
  import * as LogBoxData from '../Data/LogBoxData';
18
14
  import LogBoxLog from '../Data/LogBoxLog';
19
15
  import LogBoxButton from './LogBoxButton';
20
- import LogBoxMessage from './LogBoxMessage';
16
+ import LogBoxNotificationCountBadge from './LogBoxNotificationCountBadge';
17
+ import LogBoxNotificationDismissButton from './LogBoxNotificationDismissButton';
18
+ import LogBoxNotificationMessage from './LogBoxNotificationMessage';
21
19
  import * as LogBoxStyle from './LogBoxStyle';
22
20
  import * as React from 'react';
21
+ import {useEffect} from 'react';
23
22
 
24
23
  type Props = $ReadOnly<{
25
24
  log: LogBoxLog,
@@ -29,170 +28,34 @@ type Props = $ReadOnly<{
29
28
  onPressDismiss: () => void,
30
29
  }>;
31
30
 
32
- function LogBoxLogNotification(props: Props): React.Node {
31
+ export default function LogBoxNotification(props: Props): React.Node {
33
32
  const {totalLogCount, level, log} = props;
34
33
 
35
34
  // Eagerly symbolicate so the stack is available when pressing to inspect.
36
- React.useEffect(() => {
35
+ useEffect(() => {
37
36
  LogBoxData.symbolicateLogLazy(log);
38
37
  }, [log]);
39
38
 
40
39
  return (
41
- <View style={toastStyles.container}>
40
+ <View style={styles.container}>
42
41
  <LogBoxButton
43
42
  onPress={props.onPressOpen}
44
- style={toastStyles.press}
43
+ style={styles.press}
45
44
  backgroundColor={{
46
45
  default: LogBoxStyle.getBackgroundColor(1),
47
46
  pressed: LogBoxStyle.getBackgroundColor(0.9),
48
47
  }}>
49
- <View style={toastStyles.content}>
50
- <CountBadge count={totalLogCount} level={level} />
51
- <Message message={log.message} />
52
- <DismissButton onPress={props.onPressDismiss} />
48
+ <View style={styles.content}>
49
+ <LogBoxNotificationCountBadge count={totalLogCount} level={level} />
50
+ <LogBoxNotificationMessage message={log.message} />
51
+ <LogBoxNotificationDismissButton onPress={props.onPressDismiss} />
53
52
  </View>
54
53
  </LogBoxButton>
55
54
  </View>
56
55
  );
57
56
  }
58
57
 
59
- function CountBadge(props: {count: number, level: 'error' | 'warn'}) {
60
- return (
61
- <View style={countStyles.outside}>
62
- {/* $FlowFixMe[incompatible-type] (>=0.114.0) This suppression was added
63
- * when fixing the type of `StyleSheet.create`. Remove this comment to
64
- * see the error. */}
65
- <View style={[countStyles.inside, countStyles[props.level]]}>
66
- <Text style={countStyles.text}>
67
- {props.count <= 1 ? '!' : props.count}
68
- </Text>
69
- </View>
70
- </View>
71
- );
72
- }
73
-
74
- function Message(props: {message: MessageType}) {
75
- return (
76
- <View style={messageStyles.container}>
77
- <Text numberOfLines={1} style={messageStyles.text}>
78
- {props.message && (
79
- <LogBoxMessage
80
- plaintext
81
- message={props.message}
82
- style={messageStyles.substitutionText}
83
- />
84
- )}
85
- </Text>
86
- </View>
87
- );
88
- }
89
-
90
- function DismissButton(props: {onPress: () => void}) {
91
- return (
92
- <View style={dismissStyles.container}>
93
- <LogBoxButton
94
- backgroundColor={{
95
- default: LogBoxStyle.getTextColor(0.3),
96
- pressed: LogBoxStyle.getTextColor(0.5),
97
- }}
98
- hitSlop={{
99
- top: 12,
100
- right: 10,
101
- bottom: 12,
102
- left: 10,
103
- }}
104
- onPress={props.onPress}
105
- style={dismissStyles.press}>
106
- <Image
107
- source={require('./LogBoxImages/close.png')}
108
- style={dismissStyles.image}
109
- />
110
- </LogBoxButton>
111
- </View>
112
- );
113
- }
114
-
115
- const countStyles = StyleSheet.create({
116
- warn: {
117
- backgroundColor: LogBoxStyle.getWarningColor(1),
118
- },
119
- error: {
120
- backgroundColor: LogBoxStyle.getErrorColor(1),
121
- },
122
- log: {
123
- backgroundColor: LogBoxStyle.getLogColor(1),
124
- },
125
- outside: {
126
- padding: 2,
127
- borderRadius: 25,
128
- backgroundColor: '#fff',
129
- marginRight: 8,
130
- },
131
- inside: {
132
- minWidth: 18,
133
- paddingLeft: 4,
134
- paddingRight: 4,
135
- borderRadius: 25,
136
- fontWeight: '600',
137
- },
138
- text: {
139
- color: LogBoxStyle.getTextColor(1),
140
- fontSize: 14,
141
- lineHeight: 18,
142
- textAlign: 'center',
143
- fontWeight: '600',
144
- textShadowColor: LogBoxStyle.getBackgroundColor(0.4),
145
- textShadowOffset: {width: 0, height: 0},
146
- textShadowRadius: 3,
147
- },
148
- });
149
-
150
- const messageStyles = StyleSheet.create({
151
- container: {
152
- alignSelf: 'stretch',
153
- flexGrow: 1,
154
- flexShrink: 1,
155
- flexBasis: 'auto',
156
- borderLeftColor: LogBoxStyle.getTextColor(0.2),
157
- borderLeftWidth: 1,
158
- paddingLeft: 8,
159
- },
160
- text: {
161
- color: LogBoxStyle.getTextColor(1),
162
- flex: 1,
163
- fontSize: 14,
164
- lineHeight: 22,
165
- },
166
- substitutionText: {
167
- color: LogBoxStyle.getTextColor(0.6),
168
- },
169
- });
170
-
171
- const dismissStyles = StyleSheet.create({
172
- container: {
173
- alignSelf: 'center',
174
- flexDirection: 'row',
175
- flexGrow: 0,
176
- flexShrink: 0,
177
- flexBasis: 'auto',
178
- marginLeft: 5,
179
- },
180
- press: {
181
- height: 20,
182
- width: 20,
183
- borderRadius: 25,
184
- alignSelf: 'flex-end',
185
- alignItems: 'center',
186
- justifyContent: 'center',
187
- },
188
- image: {
189
- height: 8,
190
- width: 8,
191
- tintColor: LogBoxStyle.getBackgroundColor(1),
192
- },
193
- });
194
-
195
- const toastStyles = StyleSheet.create({
58
+ const styles = StyleSheet.create({
196
59
  container: {
197
60
  height: 48,
198
61
  position: 'relative',
@@ -218,5 +81,3 @@ const toastStyles = StyleSheet.create({
218
81
  flexBasis: 'auto',
219
82
  },
220
83
  });
221
-
222
- export default LogBoxLogNotification;