Automated tests for react-native-render-html#244
You need a POSIX compliant system (MacOS, Linux, WSL) and the following utilities installed:
- bash
- npm and nodejs
- rsync
From the command line (shell), run, from the root of this project:
./react-native-issue-244.shEach time you change the files in the template directory or the config.sh file, re-run the command to update the results of the tests.
Change the list of versions in config.sh file.
- Use
rn-diff-purgeto download the result ofreact-native initfor every version of React Native into theversionsfolder. The versions are determined by thereactNativeVersionsarray in theconfig.sh. - Run
npm install react-native-render-html react-native-webview
into each version folder.react-native-render-htmlversion can be changed with thereactNativeRenderHTMLVersionvariable in theconfig.shfile. - Copy the files from
templatefolder into each version folder. - Run the following into each version folder:
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output .build/rn$version.js --assets-dest .build/android
If the command fails, the test fails for this version. Otherwise, it passes.