Skip to content

onSlideSuccess is not getting called #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shivam21 opened this issue Jul 2, 2018 · 0 comments
Closed

onSlideSuccess is not getting called #20

shivam21 opened this issue Jul 2, 2018 · 0 comments

Comments

@shivam21
Copy link

shivam21 commented Jul 2, 2018

here is my component

/**

import React, {Component} from 'react';
import {View, Text} from 'react-native';
import {SlideButton, SlideDirection} from './SlideButton';
import Button from './Button';

export default class App extends Component {
onSlide() {
console.log('clicked!!');
}

render() {
    return (
        <View
            style={{
                backgroundColor: 'rgba(0,0,0,0.8)',
                position: 'absolute',
                bottom: 0,
                height: 70,
                flex: 1,
                width: 500
            }}>
            <View
                style={{
                    backgroundColor: '#212121',
                    borderRadius: 20,
                    width: 350,
                    height: 50,
                    marginTop: 10,
                    marginLeft: 5
                }}
            >
                <SlideButton
                    onSlideSuccess={()=>{console.log('clicked!!')}}
                    width={500}
                    height={50}
                    successfulSlidePercent={40}

                >
                    <View style={{height: 50, width: 80, flexDirection: 'row'}}>
                        <Button>Pay 250</Button>

                    </View>
                </SlideButton>
                <Text style={{position: 'absolute', marginLeft: 150, color: 'white', marginTop: 10}}>Swipe
                    to continue>></Text>
            </View>
        </View>
    );
}

}

const styles = {
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
buttonOuter: {
marginTop: 20
},

button: {
    color: 'black',
    fontSize: 15,
    width: 100,
    borderRadius: 10,
    backgroundColor: 'white',
    fontWeight: 'bold'
}

};

@shivam21 shivam21 closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant