1.0.25 • Published 2 months ago

react-native-nilbutton v1.0.25

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

react-native-nilbutton

Library for handling device information, keyboard events, and touch events in React Native.

Installation

Install the package using npm:

npm install react-native-nilbutton
yarn add react-native-nilbutton

import { getDeviceInfo } from 'react-native-nilbutton';

const fetchDeviceInfo = async () => {
  try {
    const deviceInfo = await getDeviceInfo();
    console.log(deviceInfo);
  } catch (error) {
    console.error('Error retrieving device information:', error);
  }
};


import { captureKeyboardEvents } from 'react-native-nilbutton';

const keyboardEventListener = captureKeyboardEvents((eventName, event) => {
  console.log(`${eventName} event captured:`, event);
});

// To stop listening to keyboard events, call the returned cleanup function
// keyboardEventListener();


import { captureTouchEvents } from 'react-native-nilbutton';

const touchEventListener = captureTouchEvents((eventName, event) => {
  console.log(`${eventName} event captured:`, event);
});



This documentation provides installation instructions, usage examples, and a brief overview of the package's features. Make sure to include additional information or examples if your package has more functionality or configuration options. Additionally, adjust the documentation based on any updates or changes you make to your package in the future.
1.0.19

2 months ago

1.0.18

2 months ago

1.0.17

2 months ago

1.0.16

2 months ago

1.0.22

2 months ago

1.0.21

2 months ago

1.0.20

2 months ago

1.0.25

2 months ago

1.0.24

2 months ago

1.0.23

2 months ago

1.0.11

2 months ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.13

2 months ago

1.0.12

2 months ago

1.0.2

2 months ago

1.0.10

2 months ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.3

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago