react-native-data-table icon indicating copy to clipboard operation
react-native-data-table copied to clipboard

A brief description of the bug

Open everestster opened this issue 4 years ago • 0 comments

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, }}> <ScrollView> <DataTable> <Cell>Hello 1234</Cell> <Cell>Hello 1234</Cell> <Cell>Hello 1234</Cell> </DataTable> </ScrollView> </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" }

everestster avatar Sep 01 '21 03:09 everestster