Commit fe75b8a1 authored by Trisno's avatar Trisno

fix link tidak bisa di klik di news detail

parent c7d76084
import React from 'react'; import React from 'react';
import { View, Text, StyleSheet, Dimensions, Alert } from 'react-native'; import { View, Text, StyleSheet, Dimensions, Alert, Linking } from 'react-native';
import { Image } from 'react-native-elements'; import { Image } from 'react-native-elements';
import Axios from 'axios'; import Axios from 'axios';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
...@@ -75,7 +75,10 @@ class NewsDetail extends React.Component { ...@@ -75,7 +75,10 @@ class NewsDetail extends React.Component {
}} }}
ignoredTags={['br']} ignoredTags={['br']}
ignoredStyles={['font-family',' ', '&']} /> ignoredStyles={['font-family',' ', '&']}
onLinkPress={(event, href) => {
Linking.openURL(href)
}} />
</View> </View>
</ScrollView> </ScrollView>
</View> </View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment