Skip to content
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

Calling CallModal.Show with a React Class doesn't work #12

Open
yindes opened this issue Sep 3, 2019 · 0 comments
Open

Calling CallModal.Show with a React Class doesn't work #12

yindes opened this issue Sep 3, 2019 · 0 comments

Comments

@yindes
Copy link

yindes commented Sep 3, 2019

Recommended implementation for a React Class:

CallModal.show({ renderFunction: class extends Component { handleSubmit = () => { this.props.requestCloseModal(); }; render() { return ( <View style={{width: 200, height: 300, backgroundColor: '#F00'}}> <TouchableWithoutFeedback onPress={this.props.handleSubmit}> ... </TouchableWithoutFeedback> </View> ) } } });

Running a React Native app with React 16.8.3, Expo SDK 33

requestCloseModal() isn't called for React Classes.
Using the example specified in the documentation for a React Class component.

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