简体   繁体   English

如何将我的 react 原生网站链接到我的应用程序?

[英]How do I link my react native website to my app?

I'm creating a banking platform and I would like to link the react native website to the RN app so that all of the contents that are stored on the website will be shown on the app and vice versa.我正在创建一个银行平台,我想将 react native 网站链接到 RN 应用程序,以便存储在网站上的所有内容都将显示在应用程序上,反之亦然。 I'm not sure about the dependencies/code I will need to do it, so I don't have any sample code.我不确定我需要这样做的依赖项/代码,所以我没有任何示例代码。 Can someone please show me how to link my app to my website?有人可以告诉我如何将我的应用程序链接到我的网站吗?

There are many ways you can achieve this.有很多方法可以实现这一目标。 Here are two of them -这是其中的两个-

  1. Create APIs for your website.为您的网站创建 API。 In your app, use these APIs to fetch the content of your website.在您的应用中,使用这些 API 来获取您网站的内容。 This method will require some extra work.这种方法需要一些额外的工作。
  2. Use WebView to display your website directly inside your app.使用WebView在您的应用程序中直接显示您的网站。 In this case, your website should be mobile-friendly for a better user experience.在这种情况下,您的网站应该适合移动设备,以获得更好的用户体验。 Here's one popular webview package for React Native.这是一个用于 React Native 的流行 webview package。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在我的 React 本机应用程序中覆盖 AmplifyTheme - How can I override the AmplifyTheme in my react native app 如果我的后端是 firebase firestore,我如何在我的 react js 应用程序中使用 JWT - How do i use JWT in my react js app, if my backend is firebase firestore 如何在 React-native 中将我的 firebase v8 代码更新为 v9? - How do i update my firebase v8 code to v9 in React-native? Flutter:如何获取 Apple 凭据以将 Apple 帐户链接到我的 firebase 应用程序上的帐户? - Flutter: how do I get Apple credential to link an apple account to an account on my firebase app? Firebase:如何在应用检查中注册我的 Flutter 应用? - Firebase: How do I register my Flutter app in app check? 我是否必须在 Android Studio 和 Firebase 控制台 Z2567A5EC3005EB7AC2CZ948 中将我的应用程序链接到 Firebase? - Do I have to link my app to Firebase in both Android Studio and Firebase Console web? 如何将我的 MAUI 应用程序连接到生产环境中的 Firestore 数据库? - How do I connect my MAUI app to a Firestore database in production? 由于安全网 API 已弃用,Play 商店拒绝了我的 react 本机应用程序 - Play Store is rejecting my react native app due to safetyNet API is deprecated 清除钩子上的异步调用 -React Native/Firebase 我该怎么做? - Clear asynchronous calls on hooks -React Native/Firebase how I do? Firebase Auth,从反应客户端登录用户后,如何验证用户在我的其他 api 中是否合法? - Firebase Auth, after logging a user from react client, how do I verify user is legitimate within my other api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM