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

bind方法的第一个参数代表的是什么? #48

Open
zhangxiann opened this issue Aug 13, 2018 · 1 comment
Open

bind方法的第一个参数代表的是什么? #48

zhangxiann opened this issue Aug 13, 2018 · 1 comment

Comments

@zhangxiann
Copy link

  1. bind方法的第一个参数代表的是什么?
  2. Toast.show.bind方法为什么在普通的Button中的onPress里面无效,是不是必须要在react-native-toast里面的Button的onPress方法才能显示toast
@isaaclem
Copy link

@xiechuanyu

建議參考javascript裡的bind, 是一樣的原理
或者,可以引用ES6的方式

<Button onPress={() => Toast.showLongTop("this is a message")}>
  showLongTop
</Button>

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

2 participants