Error Using react-native-static-server for Loading Local HTML in WebView (Objective C BOOL Conversion Issue)

I am developing a React Native app with a WebView to load an HTML package from the local file system. I am focusing on iOS development first and will work on Android later.

Below is the code I’m using to load the HTML file:

App.js

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import RNFS from 'react-native-fs';
const pathURI =
Platform.OS === 'android'
? 'file:///android_asset/samples/index.html'
: `${RNFS.MainBundlePath}/samples/index.html`;
<WebView
source={{uri: pathURI}}
style={styles.webview}
originWhitelist={['*']}
javaScriptEnabled={true}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
onError={syntheticEvent => {
const {nativeEvent} = syntheticEvent;
console.log('WebView error:', nativeEvent);
}}
onHttpError={syntheticEvent => {
const {nativeEvent} = syntheticEvent;
console.log('HTTP error:', nativeEvent);
}}
onMessage={event => {
console.log('WebView log:', event.nativeEvent.data);
}}
/>
</code>
<code>import RNFS from 'react-native-fs'; const pathURI = Platform.OS === 'android' ? 'file:///android_asset/samples/index.html' : `${RNFS.MainBundlePath}/samples/index.html`; <WebView source={{uri: pathURI}} style={styles.webview} originWhitelist={['*']} javaScriptEnabled={true} allowFileAccess={true} allowUniversalAccessFromFileURLs={true} onError={syntheticEvent => { const {nativeEvent} = syntheticEvent; console.log('WebView error:', nativeEvent); }} onHttpError={syntheticEvent => { const {nativeEvent} = syntheticEvent; console.log('HTTP error:', nativeEvent); }} onMessage={event => { console.log('WebView log:', event.nativeEvent.data); }} /> </code>
import RNFS from 'react-native-fs';

const pathURI =
    Platform.OS === 'android'
      ? 'file:///android_asset/samples/index.html'
      : `${RNFS.MainBundlePath}/samples/index.html`;

<WebView
  source={{uri: pathURI}}
  style={styles.webview}
  originWhitelist={['*']}
  javaScriptEnabled={true}
  allowFileAccess={true}
  allowUniversalAccessFromFileURLs={true}
  onError={syntheticEvent => {
    const {nativeEvent} = syntheticEvent;
    console.log('WebView error:', nativeEvent);
  }}
  onHttpError={syntheticEvent => {
    const {nativeEvent} = syntheticEvent;
    console.log('HTTP error:', nativeEvent);
  }}
  onMessage={event => {
    console.log('WebView log:', event.nativeEvent.data);
  }}
/>

index.html

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="loaderwrap">LOADING...</div>
<script src="js/index.js"></script>
</body>
</html>
</code>
<code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="stylesheet" href="css/style.css" /> </head> <body> <div class="loaderwrap">LOADING...</div> <script src="js/index.js"></script> </body> </html> </code>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link rel="stylesheet" href="css/style.css" />
  </head>
  <body>
    <div class="loaderwrap">LOADING...</div>
    <script src="js/index.js"></script>
  </body>
</html>

index.js

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>window.addEventListener('load', evt => {
console.log('Window Loaded');
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
console.log('onreadystatechange', xhttp.status, xhttp.readyState);
if (xhttp.readyState === XMLHttpRequest.DONE) {
if (xhttp.status === 200) {
console.log('Response:', xhttp.responseText);
} else {
console.log('Error:', xhttp.statusText);
}
}
};
xhttp.open('GET', 'data.json', true);
xhttp.send();
console.log('Window onload code executed');
});
</code>
<code>window.addEventListener('load', evt => { console.log('Window Loaded'); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { console.log('onreadystatechange', xhttp.status, xhttp.readyState); if (xhttp.readyState === XMLHttpRequest.DONE) { if (xhttp.status === 200) { console.log('Response:', xhttp.responseText); } else { console.log('Error:', xhttp.statusText); } } }; xhttp.open('GET', 'data.json', true); xhttp.send(); console.log('Window onload code executed'); }); </code>
window.addEventListener('load', evt => {
  console.log('Window Loaded');
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function () {
    console.log('onreadystatechange', xhttp.status, xhttp.readyState);
    if (xhttp.readyState === XMLHttpRequest.DONE) {
      if (xhttp.status === 200) {
        console.log('Response:', xhttp.responseText);
      } else {
        console.log('Error:', xhttp.statusText);
      }
    }
  };
  xhttp.open('GET', 'data.json', true);
  xhttp.send();
  console.log('Window onload code executed');
});

Issue:
The index.html and index.js files load successfully, and the window.onload function executes. However, the XMLHttpRequest does not execute because it requires a web server to function.

To solve this, I used the react-native-static-server package with the following code:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import StaticServer from 'react-native-static-server';
const pathURI =
Platform.OS === 'android'
? 'file:///android_asset/samples'
: `${RNFS.MainBundlePath}/samples`;
useEffect(() => {
const server = new StaticServer(8080, pathURI, {
localOnly: true,
});
server.start().then(url => {
console.log(`Server started at ${url}`);
});
}, []);
</code>
<code>import StaticServer from 'react-native-static-server'; const pathURI = Platform.OS === 'android' ? 'file:///android_asset/samples' : `${RNFS.MainBundlePath}/samples`; useEffect(() => { const server = new StaticServer(8080, pathURI, { localOnly: true, }); server.start().then(url => { console.log(`Server started at ${url}`); }); }, []); </code>
import StaticServer from 'react-native-static-server';

const pathURI =
    Platform.OS === 'android'
      ? 'file:///android_asset/samples'
      : `${RNFS.MainBundlePath}/samples`;

useEffect(() => {
  const server = new StaticServer(8080, pathURI, {
    localOnly: true,
  });

  server.start().then(url => {
    console.log(`Server started at ${url}`);
  });
}, []);

Error:
When I run the above code, I get the following error:
Error: FPStaticServer.start(): Error while converting JavaScript argument 2 to Objective C type BOOL. Objective C type BOOL is unsupported.

I’ve ensured that localOnly: true is included, but I’m not sure where I’m going wrong.

I’ve attached the package.json file in case it helps to understand the installed libraries and their versions.

package.json

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"name": "OliveQSolDemo",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"react": "18.3.1",
"react-native": "^0.76.5",
"react-native-fs": "^2.20.0",
"react-native-linear-gradient": "^2.8.3",
"react-native-static-server": "^0.5.0",
"react-native-webview": "^13.12.5"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.76.3",
"@react-native/eslint-config": "0.76.3",
"@react-native/metro-config": "0.76.3",
"@react-native/typescript-config": "0.76.3",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-clean-project": "^4.0.3",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
</code>
<code>{ "name": "OliveQSolDemo", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "react": "18.3.1", "react-native": "^0.76.5", "react-native-fs": "^2.20.0", "react-native-linear-gradient": "^2.8.3", "react-native-static-server": "^0.5.0", "react-native-webview": "^13.12.5" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", "@react-native-community/cli": "15.0.1", "@react-native-community/cli-platform-android": "15.0.1", "@react-native-community/cli-platform-ios": "15.0.1", "@react-native/babel-preset": "0.76.3", "@react-native/eslint-config": "0.76.3", "@react-native/metro-config": "0.76.3", "@react-native/typescript-config": "0.76.3", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-native-clean-project": "^4.0.3", "react-test-renderer": "18.3.1", "typescript": "5.0.4" }, "engines": { "node": ">=18" } } </code>
{
  "name": "OliveQSolDemo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "react": "18.3.1",
    "react-native": "^0.76.5",
    "react-native-fs": "^2.20.0",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-static-server": "^0.5.0",
    "react-native-webview": "^13.12.5"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "15.0.1",
    "@react-native-community/cli-platform-android": "15.0.1",
    "@react-native-community/cli-platform-ios": "15.0.1",
    "@react-native/babel-preset": "0.76.3",
    "@react-native/eslint-config": "0.76.3",
    "@react-native/metro-config": "0.76.3",
    "@react-native/typescript-config": "0.76.3",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-clean-project": "^4.0.3",
    "react-test-renderer": "18.3.1",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

Can someone help me identify the issue or provide guidance on how to resolve this error?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Error Using react-native-static-server for Loading Local HTML in WebView (Objective C BOOL Conversion Issue)

I am developing a React Native app with a WebView to load an HTML package from the local file system. I am focusing on iOS development first and will work on Android later.

Below is the code I’m using to load the HTML file:

App.js

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import RNFS from 'react-native-fs';
const pathURI =
Platform.OS === 'android'
? 'file:///android_asset/samples/index.html'
: `${RNFS.MainBundlePath}/samples/index.html`;
<WebView
source={{uri: pathURI}}
style={styles.webview}
originWhitelist={['*']}
javaScriptEnabled={true}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
onError={syntheticEvent => {
const {nativeEvent} = syntheticEvent;
console.log('WebView error:', nativeEvent);
}}
onHttpError={syntheticEvent => {
const {nativeEvent} = syntheticEvent;
console.log('HTTP error:', nativeEvent);
}}
onMessage={event => {
console.log('WebView log:', event.nativeEvent.data);
}}
/>
</code>
<code>import RNFS from 'react-native-fs'; const pathURI = Platform.OS === 'android' ? 'file:///android_asset/samples/index.html' : `${RNFS.MainBundlePath}/samples/index.html`; <WebView source={{uri: pathURI}} style={styles.webview} originWhitelist={['*']} javaScriptEnabled={true} allowFileAccess={true} allowUniversalAccessFromFileURLs={true} onError={syntheticEvent => { const {nativeEvent} = syntheticEvent; console.log('WebView error:', nativeEvent); }} onHttpError={syntheticEvent => { const {nativeEvent} = syntheticEvent; console.log('HTTP error:', nativeEvent); }} onMessage={event => { console.log('WebView log:', event.nativeEvent.data); }} /> </code>
import RNFS from 'react-native-fs';

const pathURI =
    Platform.OS === 'android'
      ? 'file:///android_asset/samples/index.html'
      : `${RNFS.MainBundlePath}/samples/index.html`;

<WebView
  source={{uri: pathURI}}
  style={styles.webview}
  originWhitelist={['*']}
  javaScriptEnabled={true}
  allowFileAccess={true}
  allowUniversalAccessFromFileURLs={true}
  onError={syntheticEvent => {
    const {nativeEvent} = syntheticEvent;
    console.log('WebView error:', nativeEvent);
  }}
  onHttpError={syntheticEvent => {
    const {nativeEvent} = syntheticEvent;
    console.log('HTTP error:', nativeEvent);
  }}
  onMessage={event => {
    console.log('WebView log:', event.nativeEvent.data);
  }}
/>

index.html

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="loaderwrap">LOADING...</div>
<script src="js/index.js"></script>
</body>
</html>
</code>
<code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="stylesheet" href="css/style.css" /> </head> <body> <div class="loaderwrap">LOADING...</div> <script src="js/index.js"></script> </body> </html> </code>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link rel="stylesheet" href="css/style.css" />
  </head>
  <body>
    <div class="loaderwrap">LOADING...</div>
    <script src="js/index.js"></script>
  </body>
</html>

index.js

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>window.addEventListener('load', evt => {
console.log('Window Loaded');
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
console.log('onreadystatechange', xhttp.status, xhttp.readyState);
if (xhttp.readyState === XMLHttpRequest.DONE) {
if (xhttp.status === 200) {
console.log('Response:', xhttp.responseText);
} else {
console.log('Error:', xhttp.statusText);
}
}
};
xhttp.open('GET', 'data.json', true);
xhttp.send();
console.log('Window onload code executed');
});
</code>
<code>window.addEventListener('load', evt => { console.log('Window Loaded'); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { console.log('onreadystatechange', xhttp.status, xhttp.readyState); if (xhttp.readyState === XMLHttpRequest.DONE) { if (xhttp.status === 200) { console.log('Response:', xhttp.responseText); } else { console.log('Error:', xhttp.statusText); } } }; xhttp.open('GET', 'data.json', true); xhttp.send(); console.log('Window onload code executed'); }); </code>
window.addEventListener('load', evt => {
  console.log('Window Loaded');
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function () {
    console.log('onreadystatechange', xhttp.status, xhttp.readyState);
    if (xhttp.readyState === XMLHttpRequest.DONE) {
      if (xhttp.status === 200) {
        console.log('Response:', xhttp.responseText);
      } else {
        console.log('Error:', xhttp.statusText);
      }
    }
  };
  xhttp.open('GET', 'data.json', true);
  xhttp.send();
  console.log('Window onload code executed');
});

Issue:
The index.html and index.js files load successfully, and the window.onload function executes. However, the XMLHttpRequest does not execute because it requires a web server to function.

To solve this, I used the react-native-static-server package with the following code:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import StaticServer from 'react-native-static-server';
const pathURI =
Platform.OS === 'android'
? 'file:///android_asset/samples'
: `${RNFS.MainBundlePath}/samples`;
useEffect(() => {
const server = new StaticServer(8080, pathURI, {
localOnly: true,
});
server.start().then(url => {
console.log(`Server started at ${url}`);
});
}, []);
</code>
<code>import StaticServer from 'react-native-static-server'; const pathURI = Platform.OS === 'android' ? 'file:///android_asset/samples' : `${RNFS.MainBundlePath}/samples`; useEffect(() => { const server = new StaticServer(8080, pathURI, { localOnly: true, }); server.start().then(url => { console.log(`Server started at ${url}`); }); }, []); </code>
import StaticServer from 'react-native-static-server';

const pathURI =
    Platform.OS === 'android'
      ? 'file:///android_asset/samples'
      : `${RNFS.MainBundlePath}/samples`;

useEffect(() => {
  const server = new StaticServer(8080, pathURI, {
    localOnly: true,
  });

  server.start().then(url => {
    console.log(`Server started at ${url}`);
  });
}, []);

Error:
When I run the above code, I get the following error:
Error: FPStaticServer.start(): Error while converting JavaScript argument 2 to Objective C type BOOL. Objective C type BOOL is unsupported.

I’ve ensured that localOnly: true is included, but I’m not sure where I’m going wrong.

I’ve attached the package.json file in case it helps to understand the installed libraries and their versions.

package.json

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"name": "OliveQSolDemo",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"react": "18.3.1",
"react-native": "^0.76.5",
"react-native-fs": "^2.20.0",
"react-native-linear-gradient": "^2.8.3",
"react-native-static-server": "^0.5.0",
"react-native-webview": "^13.12.5"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.76.3",
"@react-native/eslint-config": "0.76.3",
"@react-native/metro-config": "0.76.3",
"@react-native/typescript-config": "0.76.3",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-clean-project": "^4.0.3",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
</code>
<code>{ "name": "OliveQSolDemo", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "react": "18.3.1", "react-native": "^0.76.5", "react-native-fs": "^2.20.0", "react-native-linear-gradient": "^2.8.3", "react-native-static-server": "^0.5.0", "react-native-webview": "^13.12.5" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", "@react-native-community/cli": "15.0.1", "@react-native-community/cli-platform-android": "15.0.1", "@react-native-community/cli-platform-ios": "15.0.1", "@react-native/babel-preset": "0.76.3", "@react-native/eslint-config": "0.76.3", "@react-native/metro-config": "0.76.3", "@react-native/typescript-config": "0.76.3", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-native-clean-project": "^4.0.3", "react-test-renderer": "18.3.1", "typescript": "5.0.4" }, "engines": { "node": ">=18" } } </code>
{
  "name": "OliveQSolDemo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "react": "18.3.1",
    "react-native": "^0.76.5",
    "react-native-fs": "^2.20.0",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-static-server": "^0.5.0",
    "react-native-webview": "^13.12.5"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "15.0.1",
    "@react-native-community/cli-platform-android": "15.0.1",
    "@react-native-community/cli-platform-ios": "15.0.1",
    "@react-native/babel-preset": "0.76.3",
    "@react-native/eslint-config": "0.76.3",
    "@react-native/metro-config": "0.76.3",
    "@react-native/typescript-config": "0.76.3",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-clean-project": "^4.0.3",
    "react-test-renderer": "18.3.1",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

Can someone help me identify the issue or provide guidance on how to resolve this error?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật