msupply-foundation / react-native-data-table

154 stars 35 forks source link

A brief description of the bug #75

Open everestster opened 3 years ago

everestster commented 3 years ago

Describe the bug

I am getting the following error. error: Error: Unable to resolve module react-native/Libraries/Components/ScrollResponder from C:\Projects\Tests\DataTable\node_modules\deprecated-react-native-listview\index.js: react-native/Libraries/Components/ScrollResponder could not be found within the project or in these directories: node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-* 17 | const RCTScrollViewManager = ReactNative.NativeModules.ScrollViewManager; 18 | const ScrollView = ReactNative.ScrollView;

    19 | const ScrollResponderMixin = require('react-native/Libraries/Components/ScrollResponder').Mixin; | ^ 20 | const StaticRenderer = require('./StaticRenderer'); 21 | const View = ReactNative.View; 22 | const cloneReferencedElement = require('react-clone-referenced-element');

To reproduce

My App.js has only this code. import React from 'react'; import type {Node} from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, useColorScheme, View, } from 'react-native'; import {DataTable, Cell} from 'react-native-data-table';

<View style={{ backgroundColor: isDarkMode ? Colors.black : Colors.white, }}>

Hello 1234 Hello 1234 Hello 1234
    </View>

Version and device info

I have only these dependencies. "dependencies": { "react": "17.0.2", "react-native": "0.65.1", "react-native-data-table": "^0.2.1" }