From 84f22834f9e71c2f05d1277e62614eef82ed00bc Mon Sep 17 00:00:00 2001 From: Eric Vicenti Date: Tue, 9 Oct 2018 11:00:07 -0700 Subject: [PATCH] Distribute source (#59) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By shipping source files and setting the ‘react-native’ entry point to src, the RN packager can parse the module and provide source maps when debugging from your app. This makes the install slightly heavier but is worth it for the improved ergonomics. --- packages/tabs/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tabs/package.json b/packages/tabs/package.json index f547cd67..40506b68 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -5,9 +5,11 @@ "main": "dist/index.js", "files": [ "dist/", + "src/", "createBottomTabNavigator.js", "createMaterialTopTabNavigator.js" ], + "react-native": "src/index.js", "scripts": { "test": "jest", "flow": "flow",