react-native-bootsplash 7.0.1 → 7.1.0-beta.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 (69) hide show
  1. package/app.plugin.js +1 -1
  2. package/cli.js +1 -1
  3. package/dist/commonjs/extras/addon/index.js +97 -0
  4. package/dist/commonjs/extras/addon/index.js.map +1 -0
  5. package/dist/commonjs/{expo.js → extras/expo.js} +27 -23
  6. package/dist/commonjs/extras/expo.js.map +1 -0
  7. package/dist/commonjs/extras/generate.js +274 -0
  8. package/dist/commonjs/extras/generate.js.map +1 -0
  9. package/dist/commonjs/{generate.js → extras/utils.js} +110 -339
  10. package/dist/commonjs/extras/utils.js.map +1 -0
  11. package/dist/commonjs/package.json +1 -0
  12. package/dist/module/extras/addon/index.js +97 -0
  13. package/dist/module/extras/addon/index.js.map +1 -0
  14. package/dist/module/{expo.js → extras/expo.js} +6 -3
  15. package/dist/module/extras/expo.js.map +1 -0
  16. package/dist/module/extras/generate.js +267 -0
  17. package/dist/module/extras/generate.js.map +1 -0
  18. package/dist/module/{generate.js → extras/utils.js} +98 -326
  19. package/dist/module/extras/utils.js.map +1 -0
  20. package/dist/module/package.json +1 -0
  21. package/dist/typescript/{addon → commonjs/extras/addon}/index.d.ts +1 -1
  22. package/dist/typescript/commonjs/extras/addon/index.d.ts.map +1 -0
  23. package/dist/typescript/commonjs/extras/expo.d.ts +8 -0
  24. package/dist/typescript/commonjs/extras/expo.d.ts.map +1 -0
  25. package/dist/typescript/commonjs/extras/generate.d.ts +17 -0
  26. package/dist/typescript/commonjs/extras/generate.d.ts.map +1 -0
  27. package/dist/typescript/{generate.d.ts → commonjs/extras/utils.d.ts} +85 -50
  28. package/dist/typescript/commonjs/extras/utils.d.ts.map +1 -0
  29. package/dist/typescript/commonjs/index.d.ts.map +1 -0
  30. package/dist/typescript/commonjs/package.json +1 -0
  31. package/dist/typescript/commonjs/specs/NativeRNBootSplash.d.ts.map +1 -0
  32. package/dist/typescript/commonjs/specs/NativeRNBootSplash.web.d.ts.map +1 -0
  33. package/dist/typescript/module/extras/addon/index.d.ts +26 -0
  34. package/dist/typescript/module/extras/addon/index.d.ts.map +1 -0
  35. package/dist/typescript/module/extras/expo.d.ts +8 -0
  36. package/dist/typescript/module/extras/expo.d.ts.map +1 -0
  37. package/dist/typescript/module/extras/generate.d.ts +17 -0
  38. package/dist/typescript/module/extras/generate.d.ts.map +1 -0
  39. package/dist/typescript/module/extras/utils.d.ts +193 -0
  40. package/dist/typescript/module/extras/utils.d.ts.map +1 -0
  41. package/dist/typescript/module/index.d.ts +61 -0
  42. package/dist/typescript/module/index.d.ts.map +1 -0
  43. package/dist/typescript/module/package.json +1 -0
  44. package/dist/typescript/module/specs/NativeRNBootSplash.d.ts +14 -0
  45. package/dist/typescript/module/specs/NativeRNBootSplash.d.ts.map +1 -0
  46. package/dist/typescript/module/specs/NativeRNBootSplash.web.d.ts +9 -0
  47. package/dist/typescript/module/specs/NativeRNBootSplash.web.d.ts.map +1 -0
  48. package/package.json +52 -24
  49. package/src/{expo.ts → extras/expo.ts} +32 -33
  50. package/src/extras/generate.ts +410 -0
  51. package/src/{generate.ts → extras/utils.ts} +159 -471
  52. package/dist/commonjs/addon/index.js +0 -97
  53. package/dist/commonjs/addon/index.js.map +0 -1
  54. package/dist/commonjs/expo.js.map +0 -1
  55. package/dist/commonjs/generate.js.map +0 -1
  56. package/dist/module/addon/index.js +0 -97
  57. package/dist/module/addon/index.js.map +0 -1
  58. package/dist/module/expo.js.map +0 -1
  59. package/dist/module/generate.js.map +0 -1
  60. package/dist/typescript/addon/index.d.ts.map +0 -1
  61. package/dist/typescript/expo.d.ts +0 -6
  62. package/dist/typescript/expo.d.ts.map +0 -1
  63. package/dist/typescript/generate.d.ts.map +0 -1
  64. package/dist/typescript/index.d.ts.map +0 -1
  65. package/dist/typescript/specs/NativeRNBootSplash.d.ts.map +0 -1
  66. package/dist/typescript/specs/NativeRNBootSplash.web.d.ts.map +0 -1
  67. /package/dist/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
  68. /package/dist/typescript/{specs → commonjs/specs}/NativeRNBootSplash.d.ts +0 -0
  69. /package/dist/typescript/{specs → commonjs/specs}/NativeRNBootSplash.web.d.ts +0 -0
@@ -1,21 +1,69 @@
1
1
  import * as Expo from "@expo/config-plugins";
2
2
  import detectIndent, { type Indent } from "detect-indent";
3
- import { HTMLElement } from "node-html-parser";
4
3
  import type { Options as PrettierOptions } from "prettier";
5
4
  import { type Sharp } from "sharp";
6
5
  import { type XMLFormatterOptions } from "xml-formatter";
7
- type Platforms = ("android" | "ios" | "web")[];
8
- type RGBColor = {
9
- R: string;
10
- G: string;
11
- B: string;
6
+ export declare const PACKAGE_NAME = "react-native-bootsplash";
7
+ export type BootSplashPluginConfig = {
8
+ /**
9
+ * Logo file path (PNG or SVG)
10
+ */
11
+ logo: string;
12
+ /**
13
+ * Background color (in hexadecimal format)
14
+ * @default #fff
15
+ */
16
+ background: string;
17
+ /**
18
+ * Logo width at @1x (in dp - we recommend approximately ~100)
19
+ * @default 100
20
+ */
21
+ logoWidth: number;
22
+ /**
23
+ * Assets output directory path
24
+ * @default assets/bootsplash
25
+ */
26
+ assetsOutput: string;
27
+ /**
28
+ * License key to enable brand and dark mode assets generation
29
+ */
30
+ licenseKey?: string;
31
+ /**
32
+ * Brand file path (PNG or SVG)
33
+ */
34
+ brand?: string;
35
+ /**
36
+ * Brand width at @1x (in dp - we recommend approximately ~80)
37
+ * @default 80
38
+ */
39
+ brandWidth: number;
40
+ /**
41
+ * [dark mode] Background color (in hexadecimal format)
42
+ */
43
+ darkBackground?: string;
44
+ /**
45
+ * [dark mode] Logo file path (PNG or SVG)
46
+ */
47
+ darkLogo?: string;
48
+ /**
49
+ * [dark mode] Brand file path (PNG or SVG)
50
+ */
51
+ darkBrand?: string;
52
+ android?: {
53
+ /**
54
+ * Enforce system bars style
55
+ * @default `undefined`
56
+ */
57
+ darkContentBarsStyle?: boolean;
58
+ };
12
59
  };
13
- type Color = {
14
- hex: string;
15
- rgb: RGBColor;
60
+ type LoggerMode = {
61
+ type: "plugin";
62
+ } | {
63
+ type: "cli";
64
+ cwd: string;
16
65
  };
17
- export declare const packageName = "react-native-bootsplash";
18
- export declare const setIsExpo: (value: boolean) => void;
66
+ export declare const setLoggerMode: (value: LoggerMode) => void;
19
67
  export declare const log: {
20
68
  error: (text: string) => void;
21
69
  title: (emoji: string, text: string) => void;
@@ -51,7 +99,7 @@ type FormatOptions = {
51
99
  whiteSpaceAtEndOfSelfclosingTag?: XMLFormatterOptions["whiteSpaceAtEndOfSelfclosingTag"];
52
100
  });
53
101
  export declare const readXmlLike: (filePath: string) => {
54
- root: HTMLElement;
102
+ root: import("node-html-parser").HTMLElement;
55
103
  formatOptions: {
56
104
  indent: detectIndent.Indent;
57
105
  };
@@ -64,30 +112,33 @@ export type Asset = {
64
112
  height: number;
65
113
  width: number;
66
114
  };
67
- export type RawProps = {
68
- logo: string;
69
- background: string;
70
- logoWidth: number;
71
- assetsOutput: string;
72
- licenseKey?: string;
73
- brand?: string;
74
- brandWidth: number;
75
- darkBackground?: string;
76
- darkLogo?: string;
77
- darkBrand?: string;
78
- android?: {
79
- darkContentBarsStyle?: boolean;
80
- };
81
- };
82
- export declare const transformProps: (rootPath: string, { android, licenseKey, ...rawProps }: RawProps) => Promise<{
115
+ export declare const transformProps: (rootPath: string, { android, licenseKey, ...rawProps }: BootSplashPluginConfig) => Promise<{
83
116
  android: {
117
+ /**
118
+ * Enforce system bars style
119
+ * @default `undefined`
120
+ */
84
121
  darkContentBarsStyle?: boolean;
85
122
  };
86
123
  assetsOutputPath: string;
87
124
  licenseKey: string | undefined;
88
125
  executeAddon: boolean;
89
- background: Color;
90
- darkBackground: Color | undefined;
126
+ background: {
127
+ hex: string;
128
+ rgb: {
129
+ R: string;
130
+ G: string;
131
+ B: string;
132
+ };
133
+ };
134
+ darkBackground: {
135
+ hex: string;
136
+ rgb: {
137
+ R: string;
138
+ G: string;
139
+ B: string;
140
+ };
141
+ } | undefined;
91
142
  logo: Asset;
92
143
  darkLogo: Asset | undefined;
93
144
  brand: Asset | undefined;
@@ -112,9 +163,9 @@ export declare const writeGenericAssets: ({ props }: {
112
163
  }) => Promise<void>;
113
164
  export type AddonConfig = {
114
165
  props: Props;
115
- androidOutputPath: string | void;
116
- iosOutputPath: string | void;
117
- htmlTemplatePath: string | void;
166
+ androidOutputPath: string | undefined;
167
+ iosOutputPath: string | undefined;
168
+ htmlTemplatePath: string | undefined;
118
169
  };
119
170
  export declare const requireAddon: ({ executeAddon, licenseKey, }: Props) => {
120
171
  execute: (config: AddonConfig) => Promise<void>;
@@ -138,21 +189,5 @@ export declare const requireAddon: ({ executeAddon, licenseKey, }: Props) => {
138
189
  props: Props;
139
190
  }) => Promise<Expo.ExportedConfigWithProps>;
140
191
  } | undefined;
141
- export declare const generate: ({ platforms, html, flavor, plist, ...rawProps }: {
142
- platforms: Platforms;
143
- html: string;
144
- flavor: string;
145
- plist?: string;
146
- logo: string;
147
- background: string;
148
- logoWidth: number;
149
- assetsOutput: string;
150
- licenseKey?: string;
151
- brand?: string;
152
- brandWidth: number;
153
- darkBackground?: string;
154
- darkLogo?: string;
155
- darkBrand?: string;
156
- }) => Promise<void>;
157
192
  export {};
158
- //# sourceMappingURL=generate.d.ts.map
193
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/extras/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAE7C,OAAO,YAAY,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,KAAK,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3D,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG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CAAC;CACtB;;AAED,wBAAsE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRNBootSplash.web.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeRNBootSplash.web.ts"],"names":[],"mappings":";;;;;;;AAcA,wBAgCiB"}
@@ -0,0 +1,26 @@
1
+ import * as Expo from "@expo/config-plugins";
2
+ import { type AddonConfig, type Props } from "../utils";
3
+ declare const _default: {
4
+ execute: ({ props, androidOutputPath, iosOutputPath, htmlTemplatePath, }: AddonConfig) => Promise<void>;
5
+ writeAndroidAssets: ({ androidOutputPath, props, }: {
6
+ androidOutputPath: string;
7
+ props: Props;
8
+ }) => Promise<void>;
9
+ writeIOSAssets: ({ iosOutputPath, props, }: {
10
+ iosOutputPath: string;
11
+ props: Props;
12
+ }) => Promise<void>;
13
+ writeWebAssets: ({ htmlTemplatePath, props, }: {
14
+ htmlTemplatePath: string;
15
+ props: Props;
16
+ }) => Promise<void>;
17
+ writeGenericAssets: ({ props }: {
18
+ props: Props;
19
+ }) => Promise<void>;
20
+ withAndroidColorsNight: ({ config, props, }: {
21
+ config: Expo.ExportedConfigWithProps;
22
+ props: Props;
23
+ }) => Promise<Expo.ExportedConfigWithProps>;
24
+ };
25
+ export default _default;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extras/addon/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAS7C,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,KAAK,EAOX,MAAM,UAAU,CAAC;;8EA2wBf,WAAW;wDA7hBX;QACD,iBAAiB,EAAE,MAAM,CAAC;QAC1B,KAAK,EAAE,KAAK,CAAC;KACd;gDAkHE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,KAAK,CAAC;KACd;mDA4NE;QACD,gBAAgB,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC;KACd;oCAmH4C;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;iDA4D1D;QACD,MAAM,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACrC,KAAK,EAAE,KAAK,CAAC;KACd,KAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC;;AA4EzC,wBAO4C"}
@@ -0,0 +1,8 @@
1
+ import * as Expo from "@expo/config-plugins";
2
+ import { type BootSplashPluginConfig, PACKAGE_NAME } from "./utils";
3
+ export declare const withBootSplash: Expo.ConfigPlugin<(Partial<BootSplashPluginConfig> & {
4
+ logo: string;
5
+ }) | undefined>;
6
+ declare const _default: (config: BootSplashPluginConfig) => [typeof PACKAGE_NAME, BootSplashPluginConfig];
7
+ export default _default;
8
+ //# sourceMappingURL=expo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expo.d.ts","sourceRoot":"","sources":["../../../../src/extras/expo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAS7C,OAAO,EACL,KAAK,sBAAsB,EAG3B,YAAY,EAQb,MAAM,SAAS,CAAC;AA4SjB,eAAO,MAAM,cAAc;UACkB,MAAM;eAsDnC,CAAC;yBAGf,QAAQ,sBAAsB,KAC7B,CAAC,OAAO,YAAY,EAAE,sBAAsB,CAAC;AAFhD,wBAE2E"}
@@ -0,0 +1,17 @@
1
+ export declare const generate: ({ platforms, html, flavor, plist, ...rawProps }: {
2
+ platforms: Array<"android" | "ios" | "web">;
3
+ html: string;
4
+ flavor: string;
5
+ plist?: string;
6
+ logo: string;
7
+ background: string;
8
+ logoWidth: number;
9
+ assetsOutput: string;
10
+ licenseKey?: string;
11
+ brand?: string;
12
+ brandWidth: number;
13
+ darkBackground?: string;
14
+ darkLogo?: string;
15
+ darkBrand?: string;
16
+ }) => Promise<void>;
17
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/extras/generate.ts"],"names":[],"mappings":"AAoKA,eAAO,MAAM,QAAQ,GAAU,iDAM5B;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kBA+NA,CAAC"}
@@ -0,0 +1,193 @@
1
+ import * as Expo from "@expo/config-plugins";
2
+ import detectIndent, { type Indent } from "detect-indent";
3
+ import type { Options as PrettierOptions } from "prettier";
4
+ import { type Sharp } from "sharp";
5
+ import { type XMLFormatterOptions } from "xml-formatter";
6
+ export declare const PACKAGE_NAME = "react-native-bootsplash";
7
+ export type BootSplashPluginConfig = {
8
+ /**
9
+ * Logo file path (PNG or SVG)
10
+ */
11
+ logo: string;
12
+ /**
13
+ * Background color (in hexadecimal format)
14
+ * @default #fff
15
+ */
16
+ background: string;
17
+ /**
18
+ * Logo width at @1x (in dp - we recommend approximately ~100)
19
+ * @default 100
20
+ */
21
+ logoWidth: number;
22
+ /**
23
+ * Assets output directory path
24
+ * @default assets/bootsplash
25
+ */
26
+ assetsOutput: string;
27
+ /**
28
+ * License key to enable brand and dark mode assets generation
29
+ */
30
+ licenseKey?: string;
31
+ /**
32
+ * Brand file path (PNG or SVG)
33
+ */
34
+ brand?: string;
35
+ /**
36
+ * Brand width at @1x (in dp - we recommend approximately ~80)
37
+ * @default 80
38
+ */
39
+ brandWidth: number;
40
+ /**
41
+ * [dark mode] Background color (in hexadecimal format)
42
+ */
43
+ darkBackground?: string;
44
+ /**
45
+ * [dark mode] Logo file path (PNG or SVG)
46
+ */
47
+ darkLogo?: string;
48
+ /**
49
+ * [dark mode] Brand file path (PNG or SVG)
50
+ */
51
+ darkBrand?: string;
52
+ android?: {
53
+ /**
54
+ * Enforce system bars style
55
+ * @default `undefined`
56
+ */
57
+ darkContentBarsStyle?: boolean;
58
+ };
59
+ };
60
+ type LoggerMode = {
61
+ type: "plugin";
62
+ } | {
63
+ type: "cli";
64
+ cwd: string;
65
+ };
66
+ export declare const setLoggerMode: (value: LoggerMode) => void;
67
+ export declare const log: {
68
+ error: (text: string) => void;
69
+ title: (emoji: string, text: string) => void;
70
+ warn: (text: string) => void;
71
+ write: (filePath: string, dimensions?: {
72
+ width: number;
73
+ height: number;
74
+ }) => void;
75
+ };
76
+ export declare const hfs: {
77
+ buffer: (path: string) => NonSharedBuffer;
78
+ exists: (path: string) => boolean;
79
+ isDir: (path: string) => boolean;
80
+ json: (path: string) => unknown;
81
+ readDir: (path: string) => string[];
82
+ realPath: (path: string) => string;
83
+ rm: (path: string) => void;
84
+ text: (path: string) => string;
85
+ ensureDir: (dir: string) => void;
86
+ write: (path: string, content: string) => void;
87
+ };
88
+ export declare const writeJson: (filePath: string, content: object) => void;
89
+ type FormatOptions = {
90
+ indent?: Indent;
91
+ } & ({
92
+ formatter: "prettier";
93
+ selfClosingTags?: boolean;
94
+ useCssPlugin?: boolean;
95
+ htmlWhitespaceSensitivity?: PrettierOptions["htmlWhitespaceSensitivity"];
96
+ singleAttributePerLine?: PrettierOptions["singleAttributePerLine"];
97
+ } | {
98
+ formatter: "xmlFormatter";
99
+ whiteSpaceAtEndOfSelfclosingTag?: XMLFormatterOptions["whiteSpaceAtEndOfSelfclosingTag"];
100
+ });
101
+ export declare const readXmlLike: (filePath: string) => {
102
+ root: import("node-html-parser").HTMLElement;
103
+ formatOptions: {
104
+ indent: detectIndent.Indent;
105
+ };
106
+ };
107
+ export declare const writeXmlLike: (filePath: string, content: string, { indent, ...formatOptions }: FormatOptions) => Promise<void>;
108
+ export type Asset = {
109
+ path: string;
110
+ image: Sharp;
111
+ hash: string;
112
+ height: number;
113
+ width: number;
114
+ };
115
+ export declare const transformProps: (rootPath: string, { android, licenseKey, ...rawProps }: BootSplashPluginConfig) => Promise<{
116
+ android: {
117
+ /**
118
+ * Enforce system bars style
119
+ * @default `undefined`
120
+ */
121
+ darkContentBarsStyle?: boolean;
122
+ };
123
+ assetsOutputPath: string;
124
+ licenseKey: string | undefined;
125
+ executeAddon: boolean;
126
+ background: {
127
+ hex: string;
128
+ rgb: {
129
+ R: string;
130
+ G: string;
131
+ B: string;
132
+ };
133
+ };
134
+ darkBackground: {
135
+ hex: string;
136
+ rgb: {
137
+ R: string;
138
+ G: string;
139
+ B: string;
140
+ };
141
+ } | undefined;
142
+ logo: Asset;
143
+ darkLogo: Asset | undefined;
144
+ brand: Asset | undefined;
145
+ darkBrand: Asset | undefined;
146
+ fileNameSuffix: string;
147
+ }>;
148
+ export type Props = Awaited<ReturnType<typeof transformProps>>;
149
+ export declare const writeAndroidAssets: ({ androidOutputPath, props, }: {
150
+ androidOutputPath: string;
151
+ props: Props;
152
+ }) => Promise<void>;
153
+ export declare const writeIOSAssets: ({ iosOutputPath, props, }: {
154
+ iosOutputPath: string;
155
+ props: Props;
156
+ }) => Promise<void>;
157
+ export declare const writeWebAssets: ({ htmlTemplatePath, props, }: {
158
+ htmlTemplatePath: string;
159
+ props: Props;
160
+ }) => Promise<void>;
161
+ export declare const writeGenericAssets: ({ props }: {
162
+ props: Props;
163
+ }) => Promise<void>;
164
+ export type AddonConfig = {
165
+ props: Props;
166
+ androidOutputPath: string | undefined;
167
+ iosOutputPath: string | undefined;
168
+ htmlTemplatePath: string | undefined;
169
+ };
170
+ export declare const requireAddon: ({ executeAddon, licenseKey, }: Props) => {
171
+ execute: (config: AddonConfig) => Promise<void>;
172
+ writeAndroidAssets: (_: {
173
+ androidOutputPath: string;
174
+ props: Props;
175
+ }) => Promise<void>;
176
+ writeIOSAssets: (_: {
177
+ iosOutputPath: string;
178
+ props: Props;
179
+ }) => Promise<void>;
180
+ writeWebAssets: (_: {
181
+ htmlTemplatePath: string;
182
+ props: Props;
183
+ }) => Promise<void>;
184
+ writeGenericAssets: (_: {
185
+ props: Props;
186
+ }) => Promise<void>;
187
+ withAndroidColorsNight: (_: {
188
+ config: Expo.ExportedConfigWithProps;
189
+ props: Props;
190
+ }) => Promise<Expo.ExportedConfigWithProps>;
191
+ } | undefined;
192
+ export {};
193
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/extras/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAE7C,OAAO,YAAY,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,KAAK,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3D,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpE,eAAO,MAAM,YAAY,4BAA4B,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EA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,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,+BAG1B,KAAK,KACJ;IACE,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,kBAAkB,EAAE,CAAC,CAAC,EAAE;QACtB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,KAAK,EAAE,KAAK,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpB,cAAc,EAAE,CAAC,CAAC,EAAE;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,KAAK,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpB,cAAc,EAAE,CAAC,CAAC,EAAE;QAClB,gBAAgB,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpB,kBAAkB,EAAE,CAAC,CAAC,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3D,sBAAsB,EAAE,CAAC,CAAC,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACrC,KAAK,EAAE,KAAK,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;CAC7C,GACD,SASH,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { type ImageRequireSource, type ImageResizeMode, type ImageSourcePropType, type ImageStyle, type ViewStyle } from "react-native";
2
+ export type Config = {
3
+ fade?: boolean;
4
+ };
5
+ export type Manifest = {
6
+ background: string;
7
+ darkBackground?: string;
8
+ logo: {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ brand?: {
13
+ bottom: number;
14
+ width: number;
15
+ height: number;
16
+ };
17
+ };
18
+ export type UseHideAnimationConfig = {
19
+ manifest: Manifest;
20
+ ready?: boolean;
21
+ logo?: ImageRequireSource;
22
+ darkLogo?: ImageRequireSource;
23
+ brand?: ImageRequireSource;
24
+ darkBrand?: ImageRequireSource;
25
+ animate: () => void;
26
+ statusBarTranslucent?: boolean;
27
+ navigationBarTranslucent?: boolean;
28
+ };
29
+ export type ContainerProps = {
30
+ style: ViewStyle;
31
+ onLayout: () => void;
32
+ };
33
+ export type LogoProps = {
34
+ source: ImageSourcePropType;
35
+ fadeDuration?: number;
36
+ resizeMode?: ImageResizeMode;
37
+ style?: ImageStyle;
38
+ onLoadEnd?: () => void;
39
+ };
40
+ export type BrandProps = {
41
+ source: ImageSourcePropType;
42
+ fadeDuration?: number;
43
+ resizeMode?: ImageResizeMode;
44
+ style?: ImageStyle;
45
+ onLoadEnd?: () => void;
46
+ };
47
+ export type UseHideAnimation = {
48
+ container: ContainerProps;
49
+ logo: LogoProps;
50
+ brand: BrandProps;
51
+ };
52
+ export declare function hide(config?: Config): Promise<void>;
53
+ export declare function isVisible(): boolean;
54
+ export declare function useHideAnimation(config: UseHideAnimationConfig): UseHideAnimation;
55
+ declare const _default: {
56
+ hide: typeof hide;
57
+ isVisible: typeof isVisible;
58
+ useHideAnimation: typeof useHideAnimation;
59
+ };
60
+ export default _default;
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,SAAS,EAGf,MAAM,cAAc,CAAC;AAStB,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB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AAEF,wBAAgB,IAAI,CAAC,MAAM,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAGvD;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,oBA6L9D;;;;;;AAED,wBAIE"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,14 @@
1
+ import type { TurboModule } from "react-native";
2
+ export interface Spec extends TurboModule {
3
+ getConstants(): {
4
+ darkModeEnabled: boolean;
5
+ logoSizeRatio?: number;
6
+ navigationBarHeight?: number;
7
+ statusBarHeight?: number;
8
+ };
9
+ hide(fade: boolean): Promise<void>;
10
+ isVisible(): boolean;
11
+ }
12
+ declare const _default: Spec;
13
+ export default _default;
14
+ //# sourceMappingURL=NativeRNBootSplash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRNBootSplash.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeRNBootSplash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,YAAY,IAAI;QACd,eAAe,EAAE,OAAO,CAAC;QACzB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,SAAS,IAAI,OAAO,CAAC;CACtB;;AAED,wBAAsE"}
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ getConstants: () => {
3
+ darkModeEnabled: boolean;
4
+ };
5
+ hide: (fade: boolean) => Promise<void | undefined>;
6
+ isVisible: () => boolean;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=NativeRNBootSplash.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRNBootSplash.web.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeRNBootSplash.web.ts"],"names":[],"mappings":";;;;;;;AAcA,wBAgCiB"}