You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@ Native filesystem access for react-native
11
11
- Fixed Podfile Path-Error (https://github.com/itinance/react-native-fs/commit/9fd51e7e977400f3194c100af88b4c25e7510530) thx to [colorfulberry](https://github.com/colorfulberry)
12
12
- Add read-method with length and position params (https://github.com/itinance/react-native-fs/commit/a39c22be81f0c1f2263dbe60f3cd6cfcc902d2ac) thx to [simitti](https://github.com/simitii)
13
13
14
-
15
-
16
14
## Changes for v2.3
17
15
18
16
- React-Native 0.40 is minimum required for compiling on iOS (otherwise install an older release, see below)
@@ -171,6 +169,18 @@ public class MainApplication extends Application implements ReactApplication {
171
169
}
172
170
```
173
171
172
+
## Usage (Windows)
173
+
174
+
### Adding automatically with react-native link
175
+
176
+
The `link` command also works for adding the native dependency on Windows:
177
+
178
+
`react-native link react-native-fs`
179
+
180
+
### Adding Manually in Visual Studio
181
+
182
+
Follow the instructions in the ['Linking Libraries'](https://github.com/Microsoft/react-native-windows/blob/master/docs/LinkingLibrariesWindows.md) documentation on the react-native-windows GitHub repo. For the first step of adding the project to the Visual Studio solution file, the path to the project should be `../node_modules/react-native-fs/windows/RNFS/RNFS.csproj`.
183
+
174
184
## Examples
175
185
176
186
### Basic
@@ -309,7 +319,7 @@ The following constants are available on the `RNFS` export:
309
319
- `MainBundlePath` (`String`) The absolute path to the main bundle directory
310
320
- `CachesDirectoryPath` (`String`) The absolute path to the caches directory
311
321
- `DocumentDirectoryPath` (`String`) The absolute path to the document directory
312
-
- `TemporaryDirectoryPath` (`String`) The absolute path to the temporary directory (iOSonly)
322
+
- `TemporaryDirectoryPath` (`String`) The absolute path to the temporary directory (iOSandWindowsonly)
313
323
- `LibraryDirectoryPath` (`String`) The absolute path to the NSLibraryDirectory (iOSonly)
314
324
- `ExternalDirectoryPath` (`String`) The absolute path to the external files, shared directory (androidonly)
315
325
- `ExternalStorageDirectoryPath` (`String`) The absolute path to the external storage, shared directory (androidonly)
0 commit comments