title: Module RCTEventEmitter is not a registered callable module (calling receiveTouches)
body: <p>When i try to run the app after some changes i get this error.
  What i'm doing wrong ? </p>
  
  <blockquote>
    <p>Module RCTEventEmitter is not a registered callable module (calling
    receiveTouches)
    __callFunction
        C:\Users\Andrea Zani\Documents\WORK\weatherApp\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:295:6
    
        C:\Users\Andrea Zani\Documents\WORK\weatherApp\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:108:26
    __guard
        C:\Users\Andrea Zani\Documents\WORK\weatherApp\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:269:6
    callFunctionReturnFlushedQueue
        C:\Users\Andrea Zani\Documents\WORK\weatherApp\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:107:17</p>
  </blockquote>
  
  <p>and here is the code</p>
  
  <pre><code>import React, { Component } from 'react-native'
  
  import {
      StyleSheet,
      Text,
      View,
      TextInput,
      TouchableHighlight,
      Animated,
      ScrollView,
  } from 'react-native'
  
  import fetchWeather from './app/api/api'
  import weatherIcon from './app/utils/icons'
  
  class WeatherAppNative extends React.Component {
  
      getInitialState() {
          return {
              city: 'Bucuresti',
              country: 'Romania',
              weatherType: 'Clear',
              temperature: 21,
              searchedCity: 'Bucuresti',
              val: new Animated.Value(0),
              currentColor: 'rgba(255,255,255,0.5)',
              nextColor: this._randomColor(),
              icon: weatherIcon()
          }
      }
  
      getWeather() {
          fetchWeather(this.state.searchedCity).then((response) =&gt; {
              let weatherList = response.list[0]
  
              // Store nextColor, since we'd like to start next time with it.
              var current = this.state.nextColor
  
              // Reset animation
              this.state.val.setValue(0)
  
              this.setState({
                  temperature: weatherList.main.temp,
                  city: weatherList.name,
                  country: weatherList.sys.country,
                  weatherType: weatherList.weather[0].main,
                  currentColor: current,
                  nextColor: this._randomColor(),
                  icon: weatherIcon(weatherList.weather[0].icon)
              })
  
          })
      }
  
  
      render() {
          var backgroundColor = this.state.val.interpolate({
              inputRange: [0, 1],
              outputRange: [
                  this.state.currentColor,
                  this.state.nextColor
              ],
          })
  
  
          // Start the animation
          Animated.spring(this.state.val, {
              tension: 1,
              friction: 20,
              toValue: 1
          }).start()
  
  
          return (
              &lt;Animated.View style={{
                  backgroundColor: backgroundColor,
                  flex: 1,
                  alignItems: 'stretch',
                  justifyContent: 'center'}}&gt;
                  &lt;View style={{marginBottom: this.state.keyboardSpace}}&gt;
                      &lt;View style={[styles.animatedContainer]}&gt;
                          &lt;Text style={styles.icon}&gt;
                              {this.state.icon}
                          &lt;/Text&gt;
                          &lt;Text style={styles.temperature}&gt;
                              {Math.round(this.state.temperature) + '°C'}
                          &lt;/Text&gt;
                          &lt;Text style={styles.location}&gt;
                              {this.state.city}, {this.state.country}
                          &lt;/Text&gt;
                          &lt;Text style={styles.weatherType}&gt;
                              {this.state.weatherType}
                          &lt;/Text&gt;
                          &lt;TextInput style={styles.input}
                              onChangeText={this.onChangeText}
                              onSubmitEditing={this.getWeather}
                              clearButtonMode={'always'}
                              clearTextOnFocus={true}
                              enablesReturnKeyAutomatically={true}
                              returnKeyType={'search'}/&gt;
                      &lt;/View&gt;
                  &lt;/View&gt;
              &lt;/Animated.View&gt;
          )
      }
  
  
      onChangeText(searchedCity) {
          this.setState({
              searchedCity: searchedCity
          })
      }
  
      _randomColor() {
          var colors = [0, 1, 2].map(() =&gt; Math.ceil(Math.random() * 255))
  
          return 'rgba(' + colors.join(',') + ',0.6)'
      }
  }
  
  
  var styles = StyleSheet.create({
      animatedContainer: {
          alignItems: 'center',
          justifyContent: 'center'
      },
      temperature: {
          fontSize: 62,
          fontWeight: '100',
          margin: 0
      },
      location: {
          fontSize: 14,
          fontWeight: '100',
          marginBottom: 20,
      },
      weatherType: {
          fontSize: 34,
          fontWeight: '500'
      },
      input: {
          borderWidth: 1,
          borderColor: '#666',
          height: 40,
          marginVertical: 20,
          marginHorizontal: 20,
          paddingHorizontal: 10,
          borderRadius: 5
      },
      icon: {
          fontFamily: 'WeatherIcons-Regular',
          fontSize: 130,
          padding: 0
      }
  })
  
  export default WeatherAppNative
  </code></pre>