How to use react-native-autoheight-webview - 1 common examples

To help you get started, we’ve selected a few react-native-autoheight-webview examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github surmon-china / surmon.me.native / src / components / common / markdown / index.tsx View on Github external
import Hljs from 'highlight.js'
import React, { Component } from 'react'
import { StyleSheet, View, ViewStyle } from 'react-native'
import { observable, computed, action } from 'mobx'
import { observer } from 'mobx-react/native'
import { boundMethod } from 'autobind-decorator'
import { webUrl } from '@app/config'
import { EHomeRoutes } from '@app/routes'
import { INavigationProps } from '@app/types/props'
import { LANGUAGE_KEYS } from '@app/constants/language'
import { ImageViewerModal } from '@app/components/common/image-viewer'
import { AutoActivityIndicator } from '@app/components/common/activity-indicator'
import i18n from '@app/services/i18n'
import * as markdownStyles from './styles'

const AutoHeightWebView = require('react-native-autoheight-webview').default

Hljs.registerLanguage('go', require('highlight.js/lib/languages/go'))
Hljs.registerLanguage('css', require('highlight.js/lib/languages/css'))
Hljs.registerLanguage('sql', require('highlight.js/lib/languages/sql'))
Hljs.registerLanguage('php', require('highlight.js/lib/languages/php'))
Hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))
Hljs.registerLanguage('json', require('highlight.js/lib/languages/json'))
Hljs.registerLanguage('bash', require('highlight.js/lib/languages/bash'))
Hljs.registerLanguage('less', require('highlight.js/lib/languages/less'))
Hljs.registerLanguage('scss', require('highlight.js/lib/languages/scss'))
Hljs.registerLanguage('shell', require('highlight.js/lib/languages/shell'))
Hljs.registerLanguage('nginx', require('highlight.js/lib/languages/nginx'))
Hljs.registerLanguage('stylus', require('highlight.js/lib/languages/stylus'))
Hljs.registerLanguage('python', require('highlight.js/lib/languages/python'))
Hljs.registerLanguage('javascript', require('highlight.js/lib/languages/javascript'))
Hljs.registerLanguage('typescript', require('highlight.js/lib/languages/typescript'))

react-native-autoheight-webview

An auto height webview for React Native, even auto width for inline html

ISC
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular react-native-autoheight-webview functions