File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
# apollo-upload-client changelog
2
2
3
+ ## Next
4
+
5
+ ### Patch
6
+
7
+ - Add tips for React Native gotchas, via [ #135 ] ( https://github.com/jaydenseric/apollo-upload-client/pull/135 ) .
8
+
3
9
## 10.0.0
4
10
5
11
### Major
Original file line number Diff line number Diff line change @@ -211,13 +211,15 @@ GraphQL request `fetch` options.
211
211
212
212
A React Native [` File ` ](https://developer.mozilla.org/docs/web/api/file) substitute.
213
213
214
+ Be aware that inspecting network requests with Chrome dev tools interferes with the React Native ` FormData ` implementation, causing network errors.
215
+
214
216
**Type:** [Object](https://mdn.io/object)
215
217
216
- | Property | Type | Description |
217
- | :------- | :------------------------------- | :----------------- |
218
- | ` uri` | [String](https://mdn.io/string) | Filesystem path. |
219
- | ` name` | [String](https://mdn.io/string)? | File name. |
220
- | ` type` | [String](https://mdn.io/string)? | File content type. |
218
+ | Property | Type | Description |
219
+ | :------- | :------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
220
+ | ` uri` | [String](https://mdn.io/string) | Filesystem path. |
221
+ | ` name` | [String](https://mdn.io/string)? | File name. |
222
+ | ` type` | [String](https://mdn.io/string)? | File content type. Some environments (particularly Android) require a valid MIME type; Expo ` ImageResult . type ` is unreliable as it can be just ` image ` . |
221
223
222
224
#### See
223
225
Original file line number Diff line number Diff line change @@ -12,14 +12,17 @@ const { extractFiles, ReactNativeFile } = require('extract-files')
12
12
/**
13
13
* A React Native [`File`](https://developer.mozilla.org/docs/web/api/file)
14
14
* substitute.
15
+ *
16
+ * Be aware that inspecting network requests with Chrome dev tools interferes
17
+ * with the React Native `FormData` implementation, causing network errors.
15
18
* @kind typedef
16
19
* @name ReactNativeFileSubstitute
17
20
* @type {Object }
18
21
* @see [`extract-files` docs](https://github.com/jaydenseric/extract-files#type-reactnativefilesubstitute).
19
22
* @see [React Native `FormData` polyfill source](https://github.com/facebook/react-native/blob/v0.45.1/Libraries/Network/FormData.js#L34).
20
23
* @prop {String } uri Filesystem path.
21
24
* @prop {String } [name] File name.
22
- * @prop {String } [type] File content type.
25
+ * @prop {String } [type] File content type. Some environments (particularly Android) require a valid MIME type; Expo `ImageResult.type` is unreliable as it can be just `image`.
23
26
* @example <caption>A camera roll file.</caption>
24
27
* ```js
25
28
* {
You can’t perform that action at this time.
0 commit comments