react-native-keyboardevents
- 授权协议: MIT
- 开发语言: Objective-C JavaScript
- 操作系统: iOS
- 软件首页: https://github.com/johanneslumpe/react-native-keyboardevents
软件介绍
react-native-keyboardevents 是 React Native 的键盘事件。
基础示例:
// require the module var KeyboardEvents = require('react-native-keyboardevents'); // Now get a handle on the event emitter and add your callbacks // to the desired events. var KeyboardEventEmitter = KeyboardEvents.Emitter; // Each event will receive a `frames` object, which contains three keys - // `begin`, `end`, and `duration` . The `begin` and `end` keys each // contain an object describing the bounds of the keyboard (x, y, width // and height). The `duration` key contains the length of the keyboard // animation in seconds. // The frame in `begin` describes the bounds of the keyboard before the // animation occurred and the frame in `end` describes the bounds the keyboard // will have, after the animation has completed. KeyboardEventEmitter.on(KeyboardEvents.KeyboardWillShowEvent, (frames) => { console.log('will show', frames); }); KeyboardEventEmitter.on(KeyboardEvents.KeyboardDidShowEvent, (frames) => { console.log('did show', frames); }); KeyboardEventEmitter.on(KeyboardEvents.KeyboardWillHideEvent, (frames) => { console.log('will hide', frames); }); KeyboardEventEmitter.on(KeyboardEvents.KeyboardDidHideEvent, (frames) => { console.log('did hide', frames); }); KeyboardEventEmitter.on(KeyboardEvents.KeyboardWillChangeFrame, (frames) => { console.log('will change', frames); }); KeyboardEventEmitter.on(KeyboardEvents.KeyboardDidChangeFrame, (frames) => { console.log('did change', frames); });
他们以为自己很厉害:12个企业管理陷阱
[法] 克里斯蒂娜•凯德朗 / 王倩 / 人民邮电出版社 / 2018-11 / 69.00元
本书讲述了震惊世界的150个企业管理失败案例,并从产品与服务定位、技术 创新、广告与营销策略、跨文化发展、融资战略到企业文化与员工管理等众多角度, 揭露了商场各种败局的内幕。作者以风趣的笔触讲述了国际知名企业和商界精英们 的惨痛教训,又以专业角度解读了这些失利背后的经济学和管理学因素,给读者带 来了启示。一起来看看 《他们以为自己很厉害:12个企业管理陷阱》 这本书的介绍吧!