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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-shine",
3
- "version": "0.2.1",
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
+ `);