Skip to content

onLinkPress #9

Closed
Closed
@johntom

Description

@johntom

Hi,
While the htmlContent displays correctly I can't seem to get onLinkPress to work
Thanks,
John

render: function() {

    var htmlContent = '<p><a href="">&hearts; nice job!</a></p>';
       var url = 'http://gooogle.com';
        return (
            <View style={property.color}>
            <Image source={require('../img/glow2.png')} style={property.container}>
                <Navbar
                    title="Property Info"
                    subtitle=""
                    style={property.toolbar}
                    subtitleStyle={property.subtitle}   />          
                <ScrollView style={{marginBottom: 55, backgroundColor: 'transparent'}}>
                    <View style={property.propertyContent}>
                    <Icon name="android-checkbox-outline" size={20} color="rgba(255,255,255,0.9)" style={{position: 'absolute',top:0, left: 0}}/>
                     <Text style={property.content}>Address   {this.state.property.Address} </Text>
                    <HTMLView
                        value={htmlContent}
                        onLinkPress={(url) => console.log('navigating to: ', url)}
                        stylesheet={styles}
                      />  
                     </View>
                </ScrollView>

            </Image>
            </View>
        );
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions