Skip to content

Commit be31c64

Browse files
authored
Update README.md
Required content for readme updated
1 parent 1b08259 commit be31c64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ yarn ios
3535

3636

3737
```js
38+
import { NativeModules } from 'react-native';
3839
import { multiply } from 'react-native-modifier';
3940
**OR**
4041
import { methodModifier, signInWithApple, configureAndroidAppleAuth, AppleSigninButton } from 'react-native-modifier';
@@ -63,6 +64,9 @@ const onAppleSigning = useCallback(async () => {
6364
}, []);
6465

6566
**Apple signin failure or success response from native iOS side using event listener**
67+
const { CustomEventEmitter } = NativeModules;
68+
const eventEmitter = new NativeEventEmitter(CustomEventEmitter);
69+
6670
useEffect(() => {
6771
calculate();
6872
eventEmitter.addListener('onSigninComplete', (event) => {

0 commit comments

Comments
 (0)