Skip to content

Commit d8df780

Browse files
committed
readme update
1 parent f1ae78d commit d8df780

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ Note: this project is designed to work with the newer version of React Native li
99

1010
React 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

1616
React 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:
4548
import * 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)
5154
ScreenshotDetector.unsubscribe(this.eventEmitter);

0 commit comments

Comments
 (0)