diff --git a/packages/app-mobile/index.js b/packages/app-mobile/index.js index a72cfbfa3..8414e9be8 100644 --- a/packages/app-mobile/index.js +++ b/packages/app-mobile/index.js @@ -45,9 +45,6 @@ LogBox.ignoreLogs([ // Apparently it can be safely ignored: // https://github.com/react-native-webview/react-native-webview/issues/124 'Did not receive response to shouldStartLoad in time, defaulting to YES', - - // Emitted by react-native-popup-menu - 'MenuContext is deprecated and it might be removed in future releases, use MenuProvider instead.', ]); AppRegistry.registerComponent('Joplin', () => Root); diff --git a/packages/app-mobile/root.tsx b/packages/app-mobile/root.tsx index 5eb8944a2..c5a6dc715 100644 --- a/packages/app-mobile/root.tsx +++ b/packages/app-mobile/root.tsx @@ -66,7 +66,7 @@ const { SearchScreen } = require('./components/screens/search.js'); const { OneDriveLoginScreen } = require('./components/screens/onedrive-login.js'); import EncryptionConfigScreen from './components/screens/encryption-config'; const { DropboxLoginScreen } = require('./components/screens/dropbox-login.js'); -const { MenuContext } = require('react-native-popup-menu'); +import { MenuProvider } from 'react-native-popup-menu'; import SideMenu from './components/SideMenu'; import SideMenuContent from './components/side-menu-content'; const { SideMenuContentNote } = require('./components/side-menu-content-note.js'); @@ -1088,7 +1088,7 @@ class AppComponent extends React.Component { }} > - + @@ -1101,7 +1101,7 @@ class AppComponent extends React.Component { sensorInfo={this.state.sensorInfo} /> } - + );