index.js
937 Bytes
import React, { Component } from 'react'
import { View, Image, Linking, TouchableOpacity } from 'react-native'
import css from './style'
class FooterSenatics extends Component {
myHandlePress = (link) => () => {
console.log('pressed link')
Linking.openURL(link)
}
render() {
return (
<View style={css.container}>
<View style={css.card} >
<TouchableOpacity onPress={this.myHandlePress('http://www.innovando.gov.py')}>
<Image style={css.img} source={require('../../assets/logos/innovando.png')} />
</TouchableOpacity>
</View>
<View style={css.card} >
<TouchableOpacity onPress={this.myHandlePress('https://www.senatics.gov.py')}>
<Image style={css.img} source={require('../../assets/logos/senatics.png')} />
</TouchableOpacity>
</View>
</View>)
}
}
export default FooterSenatics