mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
Chore: Mobile: Suppress useless Icon.loadFont() warning
This commit is contained in:
parent
488394ff47
commit
5a05cc5797
@ -8,7 +8,9 @@ const { _ } = require('@joplin/lib/locale');
|
||||
import shim from '@joplin/lib/shim';
|
||||
import Setting from '@joplin/lib/models/Setting';
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error: any) => { console.info(error); });
|
||||
|
||||
class CameraView extends Component {
|
||||
constructor() {
|
||||
|
@ -21,7 +21,9 @@ import { FolderEntity } from '@joplin/lib/services/database/types';
|
||||
import { State } from '@joplin/lib/reducer';
|
||||
import CustomButton from './CustomButton';
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
// Rather than applying a padding to the whole bar, it is applied to each
|
||||
// individual component (button, picker, etc.) so that the touchable areas
|
||||
|
@ -7,7 +7,9 @@ const ReactNativeActionButton = require('react-native-action-button').default;
|
||||
const { connect } = require('react-redux');
|
||||
const { _ } = require('@joplin/lib/locale');
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
actionButtonIcon: {
|
||||
|
@ -2,7 +2,9 @@ const React = require('react');
|
||||
const Component = React.Component;
|
||||
const { View, TouchableHighlight } = require('react-native');
|
||||
const Icon = require('react-native-vector-icons/Ionicons').default;
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
const styles = {
|
||||
checkboxIcon: {
|
||||
|
@ -9,7 +9,9 @@ const Icon = require('react-native-vector-icons/Ionicons').default;
|
||||
const ModalDialog = require('../ModalDialog');
|
||||
const naturalCompare = require('string-natural-compare');
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
class NoteTagsDialogComponent extends React.Component {
|
||||
constructor() {
|
||||
|
@ -15,7 +15,9 @@ import SearchEngineUtils from '@joplin/lib/services/searchengine/SearchEngineUti
|
||||
import SearchEngine from '@joplin/lib/services/searchengine/SearchEngine';
|
||||
import { AppState } from '../../utils/types';
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
class SearchScreenComponent extends BaseScreenComponent {
|
||||
|
||||
|
@ -5,7 +5,9 @@ const { connect } = require('react-redux');
|
||||
const Icon = require('react-native-vector-icons/Ionicons').default;
|
||||
const { themeStyle } = require('./global-style.js');
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
class SideMenuContentNoteComponent extends Component {
|
||||
constructor() {
|
||||
|
@ -14,7 +14,9 @@ import { AppState } from '../utils/types';
|
||||
import Setting from '@joplin/lib/models/Setting';
|
||||
import { reg } from '@joplin/lib/registry';
|
||||
|
||||
Icon.loadFont();
|
||||
// We need this to suppress the useless warning
|
||||
// https://github.com/oblador/react-native-vector-icons/issues/1465
|
||||
Icon.loadFont().catch((error) => { console.info(error); });
|
||||
|
||||
interface Props {
|
||||
syncStarted: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user