react-native-share-menu icon indicating copy to clipboard operation
react-native-share-menu copied to clipboard

Using other libs in custom IOS View

Open Bayramito opened this issue 2 years ago • 3 comments

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 ?

Bayramito avatar Mar 30 '23 15:03 Bayramito

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

arthurgeron-work avatar Apr 17 '23 20:04 arthurgeron-work

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

singh-sukhmanjit avatar Dec 04 '23 13:12 singh-sukhmanjit

How to add libraries without podspec?

HunterT11 avatar Dec 23 '23 07:12 HunterT11