From 7a3a9a5c3ffdbf096150cc940ef542d96af0589e Mon Sep 17 00:00:00 2001 From: slorber Date: Wed, 7 Mar 2018 19:53:53 +0100 Subject: [PATCH] [add] AppRegistry support for React render callback Close #858 Co-authored-by: Nicolas Gallagher --- ...cation-test.js.snap => index-test.js.snap} | 4 +-- ...enderApplication-test.js => index-test.js} | 31 +++++++++++++++---- .../src/exports/AppRegistry/index.js | 3 +- .../exports/AppRegistry/renderApplication.js | 6 ++-- .../2-apis/AppRegistry/AppRegistryScreen.js | 6 ++-- 5 files changed, 37 insertions(+), 13 deletions(-) rename packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/{renderApplication-test.js.snap => index-test.js.snap} (94%) rename packages/react-native-web/src/exports/AppRegistry/__tests__/{renderApplication-test.js => index-test.js} (63%) diff --git a/packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/renderApplication-test.js.snap b/packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/index-test.js.snap similarity index 94% rename from packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/renderApplication-test.js.snap rename to packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/index-test.js.snap index af214b72..8396288e 100644 --- a/packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/renderApplication-test.js.snap +++ b/packages/react-native-web/src/exports/AppRegistry/__tests__/__snapshots__/index-test.js.snap @@ -9,7 +9,7 @@ exports[`Additional CSS for styled app 1`] = ` .rn-borderLeftWidth-150mub4{border-left-width:1234px}" `; -exports[`AppRegistry/renderApplication getApplication returns "element" and "getStyleElement" 1`] = ` +exports[`AppRegistry getApplication returns "element" and "getStyleElement" 1`] = ` `; -exports[`AppRegistry/renderApplication getApplication returns "element" and "getStyleElement" 2`] = ` +exports[`AppRegistry getApplication returns "element" and "getStyleElement" 2`] = ` "