expo-android-glass-view 0.1.0

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 (140) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +55 -0
  3. package/README.md +260 -0
  4. package/THIRD_PARTY_NOTICES.md +44 -0
  5. package/android/build.gradle +39 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/expo/modules/androidglassview/AndroidGlassBottomTabs.kt +162 -0
  8. package/android/src/main/java/expo/modules/androidglassview/AndroidGlassButton.kt +45 -0
  9. package/android/src/main/java/expo/modules/androidglassview/AndroidGlassSlider.kt +84 -0
  10. package/android/src/main/java/expo/modules/androidglassview/AndroidGlassToggle.kt +59 -0
  11. package/android/src/main/java/expo/modules/androidglassview/AndroidGlassView.kt +21 -0
  12. package/android/src/main/java/expo/modules/androidglassview/ControlledProp.kt +30 -0
  13. package/android/src/main/java/expo/modules/androidglassview/ExpoAndroidGlassViewModule.kt +210 -0
  14. package/android/src/main/java/expo/modules/androidglassview/GlassHostView.kt +346 -0
  15. package/android/src/main/java/expo/modules/androidglassview/GlassRegistry.kt +31 -0
  16. package/android/src/main/java/expo/modules/androidglassview/GlassSurface.kt +96 -0
  17. package/android/src/main/java/expo/modules/androidglassview/ViewBackdrop.kt +151 -0
  18. package/android/src/main/java/expo/modules/androidglassview/backdrop/Backdrop.kt +25 -0
  19. package/android/src/main/java/expo/modules/androidglassview/backdrop/BackdropEffectScope.kt +82 -0
  20. package/android/src/main/java/expo/modules/androidglassview/backdrop/DrawBackdropModifier.kt +397 -0
  21. package/android/src/main/java/expo/modules/androidglassview/backdrop/Platform.kt +18 -0
  22. package/android/src/main/java/expo/modules/androidglassview/backdrop/RuntimeShader.kt +94 -0
  23. package/android/src/main/java/expo/modules/androidglassview/backdrop/RuntimeShaderCache.kt +28 -0
  24. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/Backdrop.kt +45 -0
  25. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/CanvasBackdrop.kt +43 -0
  26. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/CombinedBackdrop.kt +107 -0
  27. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/EmptyBackdrop.kt +33 -0
  28. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/LayerBackdrop.kt +82 -0
  29. package/android/src/main/java/expo/modules/androidglassview/backdrop/backdrops/LayerBackdropModifier.kt +77 -0
  30. package/android/src/main/java/expo/modules/androidglassview/backdrop/effects/Blur.kt +37 -0
  31. package/android/src/main/java/expo/modules/androidglassview/backdrop/effects/ColorFilter.kt +83 -0
  32. package/android/src/main/java/expo/modules/androidglassview/backdrop/effects/Lens.kt +117 -0
  33. package/android/src/main/java/expo/modules/androidglassview/backdrop/effects/RenderEffect.kt +41 -0
  34. package/android/src/main/java/expo/modules/androidglassview/backdrop/highlight/Highlight.kt +36 -0
  35. package/android/src/main/java/expo/modules/androidglassview/backdrop/highlight/HighlightModifier.kt +174 -0
  36. package/android/src/main/java/expo/modules/androidglassview/backdrop/highlight/HighlightStyle.kt +146 -0
  37. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/InverseLayerScope.kt +138 -0
  38. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/LayerRecorder.kt +34 -0
  39. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/Outline.kt +26 -0
  40. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/Paint.kt +24 -0
  41. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/RenderEffect.kt +58 -0
  42. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/Shaders.kt +206 -0
  43. package/android/src/main/java/expo/modules/androidglassview/backdrop/internal/ShapeProvider.kt +52 -0
  44. package/android/src/main/java/expo/modules/androidglassview/backdrop/shadow/InnerShadow.kt +49 -0
  45. package/android/src/main/java/expo/modules/androidglassview/backdrop/shadow/InnerShadowModifier.kt +166 -0
  46. package/android/src/main/java/expo/modules/androidglassview/backdrop/shadow/Shadow.kt +35 -0
  47. package/android/src/main/java/expo/modules/androidglassview/backdrop/shadow/ShadowModifier.kt +145 -0
  48. package/android/src/main/java/expo/modules/androidglassview/capture/ViewBackdropCapture.kt +176 -0
  49. package/android/src/main/java/expo/modules/androidglassview/components/CapsuleShape.kt +10 -0
  50. package/android/src/main/java/expo/modules/androidglassview/components/DampedDragAnimation.kt +152 -0
  51. package/android/src/main/java/expo/modules/androidglassview/components/DragGestureInspector.kt +91 -0
  52. package/android/src/main/java/expo/modules/androidglassview/components/InteractiveHighlight.kt +127 -0
  53. package/android/src/main/java/expo/modules/androidglassview/components/LiquidBottomTabs.kt +471 -0
  54. package/android/src/main/java/expo/modules/androidglassview/components/LiquidButton.kt +111 -0
  55. package/android/src/main/java/expo/modules/androidglassview/components/LiquidSlider.kt +227 -0
  56. package/android/src/main/java/expo/modules/androidglassview/components/LiquidToggle.kt +220 -0
  57. package/android/src/main/java/expo/modules/androidglassview/components/TabsFrame.kt +18 -0
  58. package/build/AndroidGlassBottomTabs.android.d.ts +4 -0
  59. package/build/AndroidGlassBottomTabs.android.d.ts.map +1 -0
  60. package/build/AndroidGlassBottomTabs.android.js +42 -0
  61. package/build/AndroidGlassBottomTabs.android.js.map +1 -0
  62. package/build/AndroidGlassBottomTabs.d.ts +5 -0
  63. package/build/AndroidGlassBottomTabs.d.ts.map +1 -0
  64. package/build/AndroidGlassBottomTabs.js +34 -0
  65. package/build/AndroidGlassBottomTabs.js.map +1 -0
  66. package/build/AndroidGlassButton.android.d.ts +4 -0
  67. package/build/AndroidGlassButton.android.d.ts.map +1 -0
  68. package/build/AndroidGlassButton.android.js +32 -0
  69. package/build/AndroidGlassButton.android.js.map +1 -0
  70. package/build/AndroidGlassButton.d.ts +5 -0
  71. package/build/AndroidGlassButton.d.ts.map +1 -0
  72. package/build/AndroidGlassButton.js +38 -0
  73. package/build/AndroidGlassButton.js.map +1 -0
  74. package/build/AndroidGlassComponents.types.d.ts +71 -0
  75. package/build/AndroidGlassComponents.types.d.ts.map +1 -0
  76. package/build/AndroidGlassComponents.types.js +2 -0
  77. package/build/AndroidGlassComponents.types.js.map +1 -0
  78. package/build/AndroidGlassSlider.android.d.ts +4 -0
  79. package/build/AndroidGlassSlider.android.d.ts.map +1 -0
  80. package/build/AndroidGlassSlider.android.js +27 -0
  81. package/build/AndroidGlassSlider.android.js.map +1 -0
  82. package/build/AndroidGlassSlider.d.ts +5 -0
  83. package/build/AndroidGlassSlider.d.ts.map +1 -0
  84. package/build/AndroidGlassSlider.js +47 -0
  85. package/build/AndroidGlassSlider.js.map +1 -0
  86. package/build/AndroidGlassTab.d.ts +9 -0
  87. package/build/AndroidGlassTab.d.ts.map +1 -0
  88. package/build/AndroidGlassTab.js +22 -0
  89. package/build/AndroidGlassTab.js.map +1 -0
  90. package/build/AndroidGlassToggle.android.d.ts +4 -0
  91. package/build/AndroidGlassToggle.android.d.ts.map +1 -0
  92. package/build/AndroidGlassToggle.android.js +27 -0
  93. package/build/AndroidGlassToggle.android.js.map +1 -0
  94. package/build/AndroidGlassToggle.d.ts +5 -0
  95. package/build/AndroidGlassToggle.d.ts.map +1 -0
  96. package/build/AndroidGlassToggle.js +7 -0
  97. package/build/AndroidGlassToggle.js.map +1 -0
  98. package/build/AndroidGlassView.android.d.ts +4 -0
  99. package/build/AndroidGlassView.android.d.ts.map +1 -0
  100. package/build/AndroidGlassView.android.js +10 -0
  101. package/build/AndroidGlassView.android.js.map +1 -0
  102. package/build/AndroidGlassView.d.ts +8 -0
  103. package/build/AndroidGlassView.d.ts.map +1 -0
  104. package/build/AndroidGlassView.js +18 -0
  105. package/build/AndroidGlassView.js.map +1 -0
  106. package/build/AndroidGlassView.types.d.ts +34 -0
  107. package/build/AndroidGlassView.types.d.ts.map +1 -0
  108. package/build/AndroidGlassView.types.js +2 -0
  109. package/build/AndroidGlassView.types.js.map +1 -0
  110. package/build/index.d.ts +10 -0
  111. package/build/index.d.ts.map +1 -0
  112. package/build/index.js +12 -0
  113. package/build/index.js.map +1 -0
  114. package/build/useMinimizeOnScroll.d.ts +17 -0
  115. package/build/useMinimizeOnScroll.d.ts.map +1 -0
  116. package/build/useMinimizeOnScroll.js +39 -0
  117. package/build/useMinimizeOnScroll.js.map +1 -0
  118. package/build/utils.d.ts +5 -0
  119. package/build/utils.d.ts.map +1 -0
  120. package/build/utils.js +9 -0
  121. package/build/utils.js.map +1 -0
  122. package/expo-module.config.json +6 -0
  123. package/package.json +58 -0
  124. package/src/AndroidGlassBottomTabs.android.tsx +93 -0
  125. package/src/AndroidGlassBottomTabs.tsx +59 -0
  126. package/src/AndroidGlassButton.android.tsx +70 -0
  127. package/src/AndroidGlassButton.tsx +70 -0
  128. package/src/AndroidGlassComponents.types.ts +76 -0
  129. package/src/AndroidGlassSlider.android.tsx +70 -0
  130. package/src/AndroidGlassSlider.tsx +78 -0
  131. package/src/AndroidGlassTab.tsx +29 -0
  132. package/src/AndroidGlassToggle.android.tsx +64 -0
  133. package/src/AndroidGlassToggle.tsx +22 -0
  134. package/src/AndroidGlassView.android.tsx +41 -0
  135. package/src/AndroidGlassView.tsx +41 -0
  136. package/src/AndroidGlassView.types.ts +34 -0
  137. package/src/index.ts +11 -0
  138. package/src/useMinimizeOnScroll.ts +53 -0
  139. package/src/utils.ts +10 -0
  140. package/tsconfig.json +28 -0
@@ -0,0 +1,64 @@
1
+ import { requireNativeView } from 'expo';
2
+ import * as React from 'react';
3
+ import { StyleSheet } from 'react-native';
4
+
5
+ import type { AndroidGlassToggleProps } from './AndroidGlassComponents.types';
6
+ import { type NativeColor, toNativeColor } from './utils';
7
+
8
+ type ValueEvent = { nativeEvent: { value: boolean; eventCount: number } };
9
+
10
+ type NativeAndroidGlassToggleProps = Omit<
11
+ AndroidGlassToggleProps,
12
+ 'onValueChange' | 'accentColor' | 'trackColor'
13
+ > & {
14
+ /** Count of the last change event handled here (see ControlledProp on the native side). */
15
+ mostRecentEventCount: number;
16
+ onValueChange: (event: ValueEvent) => void;
17
+ accentColor?: NativeColor;
18
+ trackColor?: NativeColor;
19
+ };
20
+
21
+ const NativeAndroidGlassToggle: React.ComponentType<NativeAndroidGlassToggleProps> =
22
+ requireNativeView('ExpoAndroidGlassView', 'AndroidGlassToggle');
23
+
24
+ export default function AndroidGlassToggle({
25
+ value,
26
+ onValueChange,
27
+ accentColor,
28
+ trackColor,
29
+ style,
30
+ ...rest
31
+ }: AndroidGlassToggleProps) {
32
+ // Without a `value` prop, the switch keeps the user's choice.
33
+ const [ownValue, setOwnValue] = React.useState(false);
34
+ // Sent back with `value`, so the native side can tell a stale value (JS still catching up with
35
+ // earlier changes) from a current one.
36
+ const [eventCount, setEventCount] = React.useState(0);
37
+ const checked = value ?? ownValue;
38
+ return (
39
+ <NativeAndroidGlassToggle
40
+ accessibilityRole="switch"
41
+ accessibilityState={{ checked }}
42
+ {...rest}
43
+ style={[styles.toggle, style]}
44
+ value={checked}
45
+ mostRecentEventCount={eventCount}
46
+ accentColor={toNativeColor(accentColor)}
47
+ trackColor={toNativeColor(trackColor)}
48
+ onValueChange={(event) => {
49
+ const { value: next, eventCount: count } = event.nativeEvent;
50
+ setEventCount((current) => Math.max(current, count));
51
+ setOwnValue(next);
52
+ onValueChange?.(next);
53
+ }}
54
+ />
55
+ );
56
+ }
57
+
58
+ const styles = StyleSheet.create({
59
+ // The track is 64 × 28 dp; the thumb grows past it while pressed.
60
+ toggle: {
61
+ width: 64,
62
+ height: 28,
63
+ },
64
+ });
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { Switch } from 'react-native';
3
+
4
+ import type { AndroidGlassToggleProps } from './AndroidGlassComponents.types';
5
+
6
+ /** iOS and web fallback: the platform switch with the same API. */
7
+ export default function AndroidGlassToggle({
8
+ value,
9
+ onValueChange,
10
+ accentColor,
11
+ trackColor,
12
+ ...rest
13
+ }: AndroidGlassToggleProps) {
14
+ return (
15
+ <Switch
16
+ {...rest}
17
+ value={value ?? false}
18
+ onValueChange={onValueChange}
19
+ trackColor={{ false: trackColor ?? undefined, true: accentColor ?? '#34C759' }}
20
+ />
21
+ );
22
+ }
@@ -0,0 +1,41 @@
1
+ import { requireNativeView } from 'expo';
2
+ import * as React from 'react';
3
+ import { StyleSheet } from 'react-native';
4
+
5
+ import type { AndroidGlassViewProps } from './AndroidGlassView.types';
6
+ import { type NativeColor, toNativeColor } from './utils';
7
+
8
+ type NativeAndroidGlassViewProps = Omit<
9
+ AndroidGlassViewProps,
10
+ 'tintColor' | 'surfaceColor' | 'fallbackColor'
11
+ > & {
12
+ tintColor?: NativeColor;
13
+ surfaceColor?: NativeColor;
14
+ fallbackColor?: NativeColor;
15
+ };
16
+
17
+ const NativeAndroidGlassView: React.ComponentType<NativeAndroidGlassViewProps> = requireNativeView(
18
+ 'ExpoAndroidGlassView',
19
+ 'AndroidGlassView'
20
+ );
21
+
22
+ export default function AndroidGlassView({
23
+ cornerRadius,
24
+ tintColor,
25
+ surfaceColor,
26
+ fallbackColor,
27
+ style,
28
+ ...rest
29
+ }: AndroidGlassViewProps) {
30
+ const borderRadius = StyleSheet.flatten(style)?.borderRadius;
31
+ return (
32
+ <NativeAndroidGlassView
33
+ {...rest}
34
+ style={style}
35
+ cornerRadius={cornerRadius ?? (typeof borderRadius === 'number' ? borderRadius : undefined)}
36
+ tintColor={toNativeColor(tintColor)}
37
+ surfaceColor={toNativeColor(surfaceColor)}
38
+ fallbackColor={toNativeColor(fallbackColor)}
39
+ />
40
+ );
41
+ }
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ import { View } from 'react-native';
3
+
4
+ import type { AndroidGlassViewProps } from './AndroidGlassView.types';
5
+
6
+ const DEFAULT_FALLBACK_COLOR = 'rgba(255, 255, 255, 0.7)';
7
+
8
+ /**
9
+ * iOS and web fallback: the glass effect is Android-only, so render a plain translucent surface
10
+ * with the same shape. Children render as usual.
11
+ */
12
+ export default function AndroidGlassView({
13
+ cornerRadius,
14
+ fallbackColor,
15
+ blurRadius: _blurRadius,
16
+ refractionHeight: _refractionHeight,
17
+ refractionAmount: _refractionAmount,
18
+ chromaticAberration: _chromaticAberration,
19
+ depthEffect: _depthEffect,
20
+ vibrancy: _vibrancy,
21
+ highlight: _highlight,
22
+ shadow: _shadow,
23
+ tintColor: _tintColor,
24
+ surfaceColor: _surfaceColor,
25
+ style,
26
+ ...rest
27
+ }: AndroidGlassViewProps) {
28
+ return (
29
+ <View
30
+ {...rest}
31
+ style={[
32
+ {
33
+ backgroundColor: fallbackColor ?? DEFAULT_FALLBACK_COLOR,
34
+ borderRadius: cornerRadius ?? 24,
35
+ overflow: 'hidden',
36
+ },
37
+ style,
38
+ ]}
39
+ />
40
+ );
41
+ }
@@ -0,0 +1,34 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+
3
+ export type AndroidGlassViewProps = ViewProps & {
4
+ /**
5
+ * Corner radius of the glass shape, in dp. Falls back to `style.borderRadius`, then 24.
6
+ * Use a large value (e.g. 999) for a capsule.
7
+ */
8
+ cornerRadius?: number;
9
+ /** Backdrop blur radius in dp. Default 2. `0` disables the blur. */
10
+ blurRadius?: number;
11
+ /** Width of the refracting rim in dp. Default 12. `0` disables refraction. */
12
+ refractionHeight?: number;
13
+ /** How far content is bent at the rim, in dp. Default 24. */
14
+ refractionAmount?: number;
15
+ /** Split the refraction per colour channel for a prism fringe. Default false. */
16
+ chromaticAberration?: boolean;
17
+ /** Stronger, depth-like bending towards the rim. Default false. */
18
+ depthEffect?: boolean;
19
+ /** Boost the saturation of what is behind the glass. Default true. */
20
+ vibrancy?: boolean;
21
+ /** Specular highlight along the rim. Default true. */
22
+ highlight?: boolean;
23
+ /** Soft drop shadow around the shape. Default true. */
24
+ shadow?: boolean;
25
+ /** Colour tint mixed into the glass. */
26
+ tintColor?: ColorValue;
27
+ /** Flat colour painted over the glass, on top of the refraction. */
28
+ surfaceColor?: ColorValue;
29
+ /**
30
+ * Surface colour used where the effect cannot run: Android 11 and older, iOS and web.
31
+ * Default `rgba(255, 255, 255, 0.7)`.
32
+ */
33
+ fallbackColor?: ColorValue;
34
+ };
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ // Each component resolves to its native Android implementation (*.android.tsx) on Android, and
2
+ // to a plain fallback with the same API on iOS and web.
3
+ export { default as AndroidGlassView } from './AndroidGlassView';
4
+ export { default as AndroidGlassButton } from './AndroidGlassButton';
5
+ export { default as AndroidGlassToggle } from './AndroidGlassToggle';
6
+ export { default as AndroidGlassSlider } from './AndroidGlassSlider';
7
+ export { default as AndroidGlassBottomTabs } from './AndroidGlassBottomTabs';
8
+ export { default as AndroidGlassTab } from './AndroidGlassTab';
9
+ export { useMinimizeOnScroll, type MinimizeOnScroll } from './useMinimizeOnScroll';
10
+ export * from './AndroidGlassView.types';
11
+ export * from './AndroidGlassComponents.types';
@@ -0,0 +1,53 @@
1
+ import { useCallback, useRef, useState } from 'react';
2
+ import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
3
+
4
+ /** Within this distance from the top of the list, the bar is always expanded. */
5
+ const TOP_ZONE = 24;
6
+ /** Smallest scroll step between two events that counts as a direction. */
7
+ const MIN_STEP = 3;
8
+
9
+ export type MinimizeOnScroll = {
10
+ /** Pass to `AndroidGlassBottomTabs`' `minimized`. */
11
+ minimized: boolean;
12
+ /** Pass to `AndroidGlassBottomTabs`' `onMinimizedChange`. Can also force a state. */
13
+ setMinimized: (minimized: boolean) => void;
14
+ /** Pass to the main list's `onScroll`, together with `scrollEventThrottle={16}`. */
15
+ onScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
16
+ };
17
+
18
+ /**
19
+ * Minimizes `AndroidGlassBottomTabs` while the user scrolls down a list, and expands it when they
20
+ * scroll up or get back to the top, like iOS 26 tab bars. Works with ScrollView, FlatList,
21
+ * SectionList and any list that reports `onScroll`. JS only decides the state; the animation
22
+ * runs natively.
23
+ */
24
+ export function useMinimizeOnScroll(): MinimizeOnScroll {
25
+ const [minimized, setMinimizedState] = useState(false);
26
+ const current = useRef(false);
27
+ const previousY = useRef(0);
28
+
29
+ const setMinimized = useCallback((next: boolean) => {
30
+ // Scroll events arrive every frame; only a change re-renders.
31
+ if (current.current !== next) {
32
+ current.current = next;
33
+ setMinimizedState(next);
34
+ }
35
+ }, []);
36
+
37
+ const onScroll = useCallback(
38
+ (event: NativeSyntheticEvent<NativeScrollEvent>) => {
39
+ // Clamped to the scrollable range, so overscroll can't flip the direction for a frame.
40
+ const { contentOffset, contentSize, layoutMeasurement } = event.nativeEvent;
41
+ const maxY = Math.max(contentSize.height - layoutMeasurement.height, 0);
42
+ const y = Math.min(Math.max(contentOffset.y, 0), maxY);
43
+ const step = y - previousY.current;
44
+ previousY.current = y;
45
+ if (y < TOP_ZONE) setMinimized(false);
46
+ else if (step > MIN_STEP) setMinimized(true);
47
+ else if (step < -MIN_STEP) setMinimized(false);
48
+ },
49
+ [setMinimized]
50
+ );
51
+
52
+ return { minimized, setMinimized, onScroll };
53
+ }
package/src/utils.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { type ColorValue, processColor } from 'react-native';
2
+
3
+ export type NativeColor = number | null;
4
+
5
+ /** Converts a React Native colour to the ARGB int the native views expect. */
6
+ export function toNativeColor(color: ColorValue | undefined): NativeColor {
7
+ if (color == null) return null;
8
+ const processed = processColor(color);
9
+ return typeof processed === 'number' ? processed : null;
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": ["dom", "DOM.Iterable", "esnext"],
4
+ "types": ["jest"],
5
+ "typeRoots": ["./ts-declarations", "./node_modules/@types"],
6
+ "jsx": "react-native",
7
+ "target": "esnext",
8
+ "moduleResolution": "bundler",
9
+ "module": "esnext",
10
+ "moduleDetection": "force",
11
+ "esModuleInterop": true,
12
+ "sourceMap": true,
13
+ "declaration": true,
14
+ "declarationMap": true,
15
+ "inlineSources": true,
16
+ "skipLibCheck": true,
17
+ "strict": true,
18
+ "noFallthroughCasesInSwitch": true,
19
+ "noPropertyAccessFromIndexSignature": false,
20
+ "noImplicitReturns": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": false,
23
+ "rootDir": "./src",
24
+ "outDir": "./build"
25
+ },
26
+ "include": ["./src"],
27
+ "exclude": ["**/__mocks__/*", "**/__tests__/*"]
28
+ }