flexyford / impagination

A lazy data layer for your paged records
102 stars 7 forks source link

problems with react native 0.50.3 and react 16.0.0 in module binary-search-tree #46

Closed rolignu2 closed 6 years ago

rolignu2 commented 6 years ago

when importing Dataset as the example says, it gives a module error, checking the code a bit and the problem causes it

import {AVLTree} from 'binary-search-tree'; import {BinarySearchTree} from 'binary-search-tree';

the error is inside page-tree.js

any alternative for that library to react native?

"dependencies": { "binary-search-tree": "^0.2.6", "connect": "^3.6.5", "impagination": "^1.0.0-alpha.3", "link": "^0.1.5", "native-base": "^2.3.3", "react": "^16.0.0", "react-native": "^0.50.3", "react-native-animatable": "^1.2.4", "react-native-code-push": "^5.0.0-beta", "react-native-fbsdk": "^0.6.3", "react-native-fetch-polyfill": "^1.1.2", "react-native-restart": "0.0.4", "react-native-router-flux": "^4.0.0-beta.21", "react-native-vector-icons": "^4.4.2", "realm": "^1.13.0", "underscore": "^1.8.3" },

cowboyd commented 6 years ago

Can you post the exact error you're getting?

rolignu2 commented 6 years ago
captura
rolignu2 commented 6 years ago

solved: I could install the useful library and with that it could be fixed