Closed andersonqi closed 5 years ago
Don’t you have the same keys to registerComponent
methods in order to register both your share extension and app components?
If yes, it doesn’t work well because the component before is overridden by the one after that or simply causes a conflict.
A bad anticipated example:
//index.ios.js
import React from 'react'
import { AppRegistry } from 'react-native'
import App from './app.ios'
import Share from './share.ios'
AppRegistry.registerComponent('Sample1', () => App)
AppRegistry.registerComponent('Smaple1', () => Share) // TODO: Replace MyShareEx with my extension
A fine estimated example:
//index.ios.js
import React from 'react'
import { AppRegistry } from 'react-native'
import App from './app.ios'
import Share from './share.ios'
AppRegistry.registerComponent('Sample1', () => App)
AppRegistry.registerComponent('Share', () => Share) // TODO: Replace MyShareEx with my extension
Yes, that was my mistake
Thank you @NishidaRyu416
Hey i'm facing the same issue. Will you please help to resolve it. Thanks in advance.
@Shaktis3 my problem was that I had the wrong name in the register and the share. Verify that all names are correct.
Yes. In my case all the thing are correct. but still not able to open app or any screen when clicked on share extension. It freezes the app through which i'm sharing the content.
@Shaktis3 did you find a fix?
Hi there! share extension works if I replace my app with a very basic component. But if I use my full app with react navigation etc it does not work. When I try the screen stays frozen.
Is there a problem if I use react navigation? I feel that it blocks the flow