<commit_before>import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
  // DeviceEventEmitter,
  NativeEventEmitter,
} from 'react-native';

import Kontakt, {
  KontaktModule,
  ANDRE_CONSTANT,
} from 'react-native-kontaktio';

const kontaktEmitter = new NativeEventEmitter(KontaktModule);

export default class IBeaconExample extends Component {
  state = {
    initText: '',
  };

  componentDidMount() {
    // Initialization, configuration and adding of beacon regions
    Kontakt.initBeacons()
      .then(text => this.setState({ initText: text }))
      .catch(error => this.setState({ initText: error }));

    const subscription = kontaktEmitter.addListener(
      'didEnterRegion',
      (region) => console.log('subscription result', region),
    );

    console.log("andre constant", ANDRE_CONSTANT);
  }

  componentWillUnmount() {
    subscription.remove();
  }

  render() {
    const { initText } = this.state;

    return (
      <View style={styles.container}>
        <Text>Welcome</Text>
        <Text style={styles.text}>
          {initText}
        </Text>
      </View>
    );
  }
}
<commit_msg>Limit example to working parts<commit_after>import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
  // DeviceEventEmitter,
  NativeEventEmitter,
  NativeModules,
} from 'react-native';

import Kontakt from 'react-native-kontaktio';

// const kontaktEmitter = new NativeEventEmitter(KontaktModule);

// const kontakt = NativeModules.KontaktBeacons;

export default class IBeaconExample extends Component {
  state = {
    initText: '',
  };

  componentDidMount() {
    // Initialization, configuration and adding of beacon regions
    // Kontakt.initBeacons()
    //   .then(text => this.setState({ initText: text }))
    //   .catch(error => this.setState({ initText: error }));

    // const subscription = kontaktEmitter.addListener(
    //   'didEnterRegion',
    //   (region) => console.log('subscription result', region),
    // );

    Kontakt.test();

    console.log("andre constant", Kontakt.ANDRE_CONSTANT);
  }

  componentWillUnmount() {
    // subscription.remove();
  }

  render() {
    const { initText } = this.state;

    return (
      <View style={styles.container}>
        <Text>Welcome</Text>
        <Text style={styles.text}>
          {initText}
        </Text>
      </View>
    );
  }
}

{'fraction_non_alphanumeric': 0.135678391959799, 'fraction_numerical': 0.0, 'mean_word_length': 2.9816666666666665, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5493544', 'n_tokens_mistral': 733, 'n_tokens_neox': 743, 'n_words': 155}