react-native-shine 0.2.1 β 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/scripts/install-peers.js +21 -0
- package/scripts/postinstall.js +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-shine",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Fast and efficient way of adding interactive effects that are run entirely on shaders using typeGPU.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"cpp",
|
|
21
21
|
"*.podspec",
|
|
22
22
|
"react-native.config.js",
|
|
23
|
+
"scripts",
|
|
23
24
|
"!ios/build",
|
|
24
25
|
"!android/build",
|
|
25
26
|
"!android/gradle",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
|
|
3
|
+
const PEERS = [
|
|
4
|
+
'react-native-reanimated',
|
|
5
|
+
'react-native-worklets',
|
|
6
|
+
'react-native-wgpu',
|
|
7
|
+
'typegpu',
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
const installer = process.env.npm_config_user_agent?.includes('yarn')
|
|
11
|
+
? 'yarn add'
|
|
12
|
+
: 'npm install';
|
|
13
|
+
|
|
14
|
+
console.log(`\nπ¦ Installing peer dependencies:\n${PEERS.join('\n')}\n`);
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
execSync(`${installer} ${PEERS.join(' ')}`, { stdio: 'inherit' });
|
|
18
|
+
console.log('\nβ
Peer dependencies installed!\n');
|
|
19
|
+
} catch (err) {
|
|
20
|
+
console.error('\nβ Failed to install peer dependencies:', err.message);
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
console.log(`
|
|
2
|
+
π react-native-shine installed.
|
|
3
|
+
|
|
4
|
+
β οΈ Please make sure you have the required peer dependencies installed in your app:
|
|
5
|
+
|
|
6
|
+
π¦ react-native-reanimated
|
|
7
|
+
π¦ react-native-worklets
|
|
8
|
+
π¦ react-native-wgpu
|
|
9
|
+
π¦ typegpu
|
|
10
|
+
|
|
11
|
+
If you havenβt already, you can install them using:
|
|
12
|
+
|
|
13
|
+
yarn add react-native-reanimated react-native-worklets react-native-wgpu typegpu
|
|
14
|
+
or
|
|
15
|
+
npm install react-native-reanimated react-native-worklets react-native-wgpu typegpu
|
|
16
|
+
|
|
17
|
+
π For more details, visit:
|
|
18
|
+
https://github.com/wojtus7/react-native-shine
|
|
19
|
+
`);
|