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:
Eric Vicenti 2018-09-16 09:17:10 -07:00 committed by GitHub
parent a8f492cdcd
commit 8be65b0ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 .",