Skip to content

Commit 2ac51a2

Browse files
committed
Apply temporary fix to React native bug
Signed-off-by: Simone Arpe <[email protected]>
1 parent f319489 commit 2ac51a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/Catalog/Catalog.android.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ import { StackNavigator } from "react-navigation";
2525

2626
import PSPDFKitView from "react-native-pspdfkit";
2727

28+
// React Native bug that hopefully will be fixed soon:
29+
// https://github.com/facebook/react-native/issues/18868
30+
import { YellowBox } from 'react-native'
31+
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated'])
32+
2833
var PSPDFKit = NativeModules.PSPDFKit;
2934

3035
const pspdfkitColor = "#267AD4";

0 commit comments

Comments
 (0)