beefe / react-native-popup Goto Github PK
View Code? Open in Web Editor NEWpopup for react-native
popup for react-native
I like the component, thanks! But with a substantial amount of text, the margins/padding look too cramped.
I'm looking at the style def here: https://github.com/beefe/react-native-popup/blob/master/index.js#L325
I'd like to be able to modify various styles in the component. Have you thought about a way to do this? Would you like a PR?
Hi,
When Tip was appeared after tip was appeared I am tapped on main View component then Dialogbox tip was disappeared.I no need to disappeared when i am tapped on main view.Please help me.
I got it working but the tooltip centers itself right below my button.
Which makes the button unseeable, and the text unreadable.
Layered: Normal screen everything except 1 thing becomes grey.
The tooltip gets layered ontop of everything EXCEPT the TouchableHighlight button.
which shines above everything else.
import React,{
Component,
StyleSheet,
Text,
TextInput,
View,
TouchableHighlight
} from 'react-native';
import Popup from 'react-native-popup';
export default class SomeClass extends Component {
onPressFunction() {
this.popup.tip({
content: 'come on!'
});
}
render() {
<View style={styles.container}>
<Popup ref={(popup) => { this.popup = popup }}/>
<TouchableHighlight style={styles.FunctionBodyButton} >
<Text style={styles.FunctiondBodyButtonText} onPress={this.onPressFunction.bind(this)}>
Do something in the middle of my screen
</Text>
</TouchableHighlight>
</View>
}
}
const styles = StyleSheet.create({
FunctionBodyButton: {
padding: 10,
marginTop: 50,
borderRadius: 25,
backgroundColor: '#1fa345'
},
FunctionBodyButtonText: {
fontSize: 18,
color: 'white',
textAlign: 'center'
}
});
Also : TouchableNativeFeedback seems to suffer the same fate.
Specs:
react-native: 0.23.1
react-native-popup: 0.5.2
The idea is really good , but right now if I wanna use the tooltip like its in the overlay state.
Hi,
Thanks for the library, nice work.
I'm just getting the following error I'm using react-native 0.17:
Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `PopContent`. See https://fb.me/react-warning-keys for more information.
Trying to implement this code in my project it fails with bug.
I got the feeling, this.popup seems to be undefined.
Error:
undefined it not an object (evaluating 'this.popup.tip')
I got the feeling in my script it can't find:
<Popup ref={(popup) => { this.popup = popup }}/>
Basically I got a simple script:
onPressGimmeToolTip() {
this.popup.tip({
content: 'come on!'
});
}
render(){
<View>
<Popup ref={(popup) => { this.popup = popup }}/>
<Text onPress={this.onPressGimmeToolTip}>
Yay it did something.
</Text>
</View>
}
I would love to use this library 👍
Specs:
react-native: 0.23.1
react-native-popup: 0.5.2
React, Component and PropTypes need to be imported from React.
Everything else is imported from React-Native.
Hey guys,
After fixing the React.PropTypes issue and confirming the import of the module in my project, i stumbled on this problem.
Any way forward please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.