Closed Nitingadhiya closed 4 years ago
+1
+1
@maxs15
As a workaround till this is merged you can add a postinstall
step to your package.json
file which will apply PR #103.which is currently awaiting merging.
{
"name": "TestApp",
"version": "0.0.1",
"private": true,
"scripts": {
"postinstall": "./scripts/react-native-spinkit-android-build-patch.sh",
}
}
The file react-native-spinkit-android-build-patch.sh
is below:
#!/usr/bin/env bash
set -e
pushd node_modules/react-native-spinkit
SEMAPHORE=android_build_patched
if test ! -f ${SEMAPHORE}; then
touch ${SEMAPHORE}
PATCH_FILE=android_build.patch
curl https://patch-diff.githubusercontent.com/raw/maxs15/react-native-spinkit/pull/103.patch > ${PATCH_FILE}
patch -p1 <${PATCH_FILE}
rm ${PATCH_FILE}
fi
popd
Fixed in 1.5.0 :)
We have create project with latest react-native version. then installed spin-kit library after I will run "react-native run-android" . but we have facing below error :
FAILURE: Build failed with an exception.
Project react-native version: "react": "16.4.1", "react-native": "0.56.0", "react-native-spinkit": "^1.1.1",