Git Product home page Git Product logo

react-native-popup's People

Contributors

chunyanzhu avatar lhioui avatar lwhiteley avatar maitreyabuddha avatar skyren avatar xwenliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-popup's Issues

Doesn't work in ScrollView

screen shot 2017-12-02 at 4 10 52 pm

Note the button and text are inside the ScrollView.
Looks like this:

screen shot 2017-12-02 at 4 11 21 pm

end result when clicking on either the check or the click me text is the following:

screen shot 2017-12-02 at 4 12 16 pm

Tip Disappear when tapped outside of view

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.

iPAD

I'm testing in table environment. But, in iPAD the popup view is very wide.
Is there any method to set the size ?
Thanks

2017-03-21 4 13 50

TouchableHighlight goes right through the tooltip

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.

key's missing

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.

undefined it not an object (evaluating 'this.popup.tip')

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.