react-native-windows-cursor
Version:
A Cursor NativeModule for React Native Windows
25 lines (21 loc) • 592 B
JavaScript
/**
* Copyright (c) 2017-present, Blue Jeans, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Cursor
* @flow
*/
;
const CursorModule = require('react-native').NativeModules.Cursor;
var Cursor = {
setCursor: function(
cursor: string
): void {
CursorModule.setCursor(cursor)
}
}
module.exports = Cursor;