view.js 669 Bytes
/**
 * @author sheng
 * @description 隐私政策
 * @date 2020/09/03
 */
import React from 'react'
import { View, ActivityIndicator } from 'react-native'
import WebView from 'react-native-webview'
import { Colors } from '../../../commo/theme'
import { APP } from '../../../config'
import { styles } from './style'

const Page = () => {
  const indicator = () => {
    return (
      <View style={styles.wrapper}>
        <ActivityIndicator size={'large'} color={Colors.primary} />
      </View>
    )
  }

  return (
    <WebView
      startInLoadingState={true}
      renderLoading={indicator}
      source={{ uri: APP.privacyLink }}
    />
  )
}

export default Page