Skip to content

Create Today widget with Cocoapods #30

@Under-Warz

Description

@Under-Warz

Hi,

For those who have some issues to create a Today Widget and link it to use React Native in the widget, here is the missing parts.

  1. Follow up this wonderful Medium article => https://medium.com/@davidskaarup/add-ios-today-widget-to-your-react-native-app-ed9c9b601cc
  2. In step 4. Add New Run Script Phase, replace the script with the updated path for react 0.58
export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh
  1. Edit your Podfile to get something like this :
target 'MainApp' do
 ... pods with React...

  target 'TodayWidget' do
    inherit! :search_paths
  end
end

Tada!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions