tjvantoll / nativescript-IQKeyboardManager

NativeScript wrapper for the popular IQKeyboardManager iOS framework
MIT License
100 stars 20 forks source link

Hide the "done" button, using Angular 2 #15

Closed Yamilquery closed 7 years ago

Yamilquery commented 7 years ago

I'm trying to hide the "done" button on my Angular 2 app using this:

myInput.ios.inputAccessoryView = UIView.alloc().init();

But, I'm getting this error:

Cannot find name 'UIView'

Green-Cat commented 7 years ago

@tjvantoll

triniwiz commented 7 years ago

place 👉 declare var UIView:any; at the top of your component that will help or you can install the tns-platform-declaration module

EddyVerbruggen commented 7 years ago

20 will make this easier.

tjvantoll commented 7 years ago

20 has been merged and pushed out. You can now easily change the “Done” text as well as a few other things. See https://github.com/tjvantoll/nativescript-IQKeyboardManager/blob/54bcec25fe7f09b6d2a4ea8428ac80fb3edb19cd/demo/app/main-view-model.ts#L43 as an example.