mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-01-27 23:08:48 +00:00
Add explicit main file for react-native
Metro will compile all source files, so we should avoid using dist to support source maps in people's apps. This key provides an explicit reference for metro to follow for react native, while keeping the main entry point for potential web consumption.
This commit is contained in:
parent
a8f492cdcd
commit
8be65b0ff4
@ -3,6 +3,7 @@
|
||||
"version": "0.5.1",
|
||||
"description": "Stack navigator component for React Navigation",
|
||||
"main": "dist/index.js",
|
||||
"react-native": "src/index.js",
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"lint": "eslint .",
|
||||
|
Loading…
x
Reference in New Issue
Block a user