我已经找到了several of reverse examples:从应用程序做出反应发送到使用意图另一个。注册我的阵营原生应用的ShareAction可能性Android中
我发现一个家伙explaining how to do this with IOS的博客文章。
但不是在Android上。 :(
我明白了什么是from there我需要在AndroidManifest.xml中`”文件中添加了一句:?
<activity android:name=".ShareLink">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
我说得对,这是APP_ROOT/node_modules/react-native/ReactAndroid/src/main/AndroidManifest.xml
文件
它应该看这样的呢?
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.facebook.react">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application />
<activity android:name=".ShareLink">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
</manifest>
如何创建在帐篷?
一旦我的应用程序在列表中(wohoo),如何获取React应用程序中的数据?
任何帮助将不胜感激。我是一名网站开发人员,喜欢React,但对Android来说完全是n00b。