-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.ts
More file actions
20 lines (15 loc) · 749 Bytes
/
index.ts
File metadata and controls
20 lines (15 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { ConfigPlugin } from "@expo/config-plugins";
import { RNASConfig } from "./types";
import withCertificateTransparency from "./withCertificateTransparency";
import withDisableCache from "./withDisableCache";
import withpreventRecentScreenshots from "./withPreventRecentScreenshots";
import withSSLPinning from "./withSSLPinning";
const withRNAS: ConfigPlugin<RNASConfig> = (config, props) => {
config = withSSLPinning(config, props.sslPinning);
config = withpreventRecentScreenshots(config, props.preventRecentScreenshots);
config = withDisableCache(config, props.disableCache);
config = withCertificateTransparency(config, props.certificateTransparency);
return config;
};
export default withRNAS;
export type { RNASConfig };