Skip to content

Commit

Permalink
fix(react-native-pdf): enable http traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 19, 2024
1 parent e585908 commit a5adf54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion apps/react-native-pdf/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@
"name": "pdf",
"icon": "https://icogen.vercel.app/api/icon?icon=🔌&color_hex=4190F7",
"plugins": [
["expo-build-properties", {
"android": {
"usesCleartextTraffic": true
}
}],
"@config-plugins/react-native-blob-util",
"@config-plugins/react-native-pdf"
]
],
"ios": {
"infoPlist": {
"NSAppTransportSecurity": {
"NSExceptionDomains": {
"samples.leanpub.com": {
"NSTemporaryExceptionAllowsInsecureHTTPLoads": true
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions apps/react-native-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@config-plugins/react-native-blob-util": "*",
"@config-plugins/react-native-pdf": "*",
"expo": "^50.0.2",
"expo-build-properties": "~0.11.0",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
Expand Down

0 comments on commit a5adf54

Please sign in to comment.