Expensify / react-native-share-menu

A module for React Native that adds your app to the share menu of the device
MIT License
624 stars 234 forks source link

Using other libs in custom IOS View #247

Open Bayramito opened 1 year ago

Bayramito commented 1 year ago

Hi,

How can i use the other packages in a custom ios view ?

I have created a custom view but cannot use the other components that i created in the project.

Cannot use react-native-vector-icons for example.

Question #2

can i use global state managment like MobX in my custom view ?

arthurgeron-work commented 1 year ago

Mine wouldn't work if I used any styled-component

singh-sukhmanjit commented 7 months ago

You need to add another target for the extension in Podfile and manually add pods for each library you want to use. eg.

target 'ShareExtension' do
  use_react_native!
  pod 'RNShareMenu', :path => '../node_modules/react-native-share-menu'
  # Manually link packages here to keep your extension bundle size minimal
end
HunterT11 commented 6 months ago

How to add libraries without podspec?