import React from 'react';
import ImageButton from 'react-native-img-button';
import {
Dimensions,
NetInfo,
StyleSheet,
Text,
View,
Image,
} from 'react-native';
export default class Main extends React.Component {
onPressButton() {
console.log("Pressed!");
}
render() {
return (
<View style={ styles.container }>
<ImageButton
style={ styles.btn }
appearance={ {
normal: require("btn_normal.png"),
highlight: require("btn_normal_pressed.png")
} }
onPress={ this.onPressButton }/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
btn: {
width: 50,
height: 50,
},
});
-
Notifications
You must be signed in to change notification settings - Fork 6
thethreeonee/react-native-image-button
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published