File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,16 @@ Note: this project is designed to work with the newer version of React Native li
99
1010React Native < 0.60.0
1111
12- ` $ npm install react-native-screenshot-detect`
12+ ` npm install react-native-screenshot-detect `
1313
14- ` $ react-native link react-native-screenshot-detect`
14+ ` react-native link react-native-screenshot-detect `
1515
1616React Native >= 0.60.0
1717
18- ` $ npm install react-native-screenshot-detect `
18+ ` npm install react-native-screenshot-detect `
19+
20+ ` pod install ` inside of the ios sub folder
21+
1922
2023## Usage
2124
@@ -45,7 +48,7 @@ Update the AppDelegate.m file to include the following:
4548import * as ScreenshotDetector from ' react-native-screenshot-detect' ;
4649
4750// Subscribe callback to screenshots:
48- this .eventEmitter = ScreenshotDetector .subscribe (function () { ... });
51+ this .eventEmitter = ScreenshotDetector .subscribe (() => { ... });
4952
5053// Unsubscribe later (a good place would be componentWillUnmount)
5154ScreenshotDetector .unsubscribe (this .eventEmitter );
You can’t perform that action at this time.
0 commit comments