Skip to content

Releases: RichardRNStudio/react-native-find-local-devices

v2.0.9

14 Apr 08:23
Compare
Choose a tag to compare

What's Changed

  • We have refactored the entire package. It works based on a class PortScanner:
import PortScanner from 'react-native-find-local-devices';

const scanner = new PortScanner({
    timeout: 40,
    ports: [8000],
    onDeviceFound: (device) => {
      console.log('Found device!', device);
    },
    onFinish: (devices) => {
      console.log('Finished , devices:', devices);
    },
    onCheck: (device) => {
      console.log('Checking IP: ', device.ipAddress);
    },
    onNoDevices: () => {
      console.log('Finished scanning, no results have been found!');
    },
    onError: (error) => {
      // Called when no service found
      console.log('Error', error);
    },
  });

  // You can start the discovering with the following function:
  scanner.start();

  // When the discovering is running, you can cancel that with the following function:
  scanner.stop();

New Contributors

  • @gstcyr made their first contribution in #4

Thank you for your contribution @gstcyr!

Full Changelog: v1.3.5...v2.0.8

Release 1.3.5

05 Feb 17:58
Compare
Choose a tag to compare

1.3.5 (2021-02-05)

Release 1.3.4

08 Jan 12:51
Compare
Choose a tag to compare

1.3.4 (2021-01-08)

Release 1.3.3

03 Jan 14:17
Compare
Choose a tag to compare

1.3.3 (2021-01-03)

Release 1.3.2

02 Jan 16:39
Compare
Choose a tag to compare

1.3.2 (2021-01-02)

Release 1.3.1

02 Jan 16:16
Compare
Choose a tag to compare

1.3.1 (2021-01-02)