ripal-ui 1.0.4 → 1.0.6

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/elements/Text.tsx CHANGED
@@ -53,8 +53,6 @@ const Text: FC<TextProps> = ({
53
53
  if (lang !== null) {
54
54
  const ogChildren = children;
55
55
  if (typeof children === "string") {
56
- console.log(lang);
57
-
58
56
  children = children.split('.').reduce((acc, key) => {
59
57
  return acc && acc[key] !== undefined ? acc[key] : ogChildren;
60
58
  }, config.appLangs[lang]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ripal-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A collection of React elements and components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "react": "^18.0.0",
12
- "react-native": "^0.74.2"
12
+ "react-native": "^0.74.2",
13
+ "@react-native-async-storage/async-storage": "1.23.1"
13
14
  },
14
15
  "devDependencies": {
15
16
  "@babel/cli": "^7.25.6",
@@ -3,19 +3,6 @@ const fs = require('fs');
3
3
  const path = require('path');
4
4
  const { exec } = require('child_process');
5
5
 
6
- // Installing AsyncStorage
7
- exec('npm install @react-native-async-storage/async-storage', (error, stdout, stderr) => {
8
- if (error) {
9
- console.error(`Error installing dependencies: ${error.message}`);
10
- return;
11
- }
12
- if (stderr) {
13
- console.error(`stderr: ${stderr}`);
14
- return;
15
- }
16
- generateConfig(); // Call function to generate config after installing
17
- });
18
-
19
6
  // Define the config file content
20
7
  const configContent = `const config = {
21
8
  appName: "",