I am trying to use Knex.js (http://knexjs.org/
) to manage the SQLite database that comes with Expo (https://docs.expo.io/versions/latest/sdk/sqlite.html
.) When I import knex, it crashes because of some missing node.js packages like "events", "streams", "assert", etc.
So clearly it seems to think it is in a node.js environment which isn't what create-react-native-app provides by default.
I only need it to generate SQL query strings for a better development interface (compared to string manipulation and concatenation).
Has anyone got knex.js to work on create-react-native-app?