OMC's Blog

React Native Cheatsheet

March 10, 2019

React Native

Clean react-native cache

yarn start — —reset-cache

When React Native Doesn’t Show the changes

rm -rf ~/.rncache #clean

rm -rf node_modules

killall -9 node

If you have duplicate symbols for architecture arm7

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "React"
      target.remove_from_project
    end
  end
end

In case you have pod issue

pod deintegrate
pod install

Unlink the libraries

react-native unlink library && yarn remove library

iOS

xcode is creating generic xcode archive instead of iOS App Archive

Skip install is NO for the main project target
Skip install is YES for framework (sub-projects) targets
Sub-projects need to have Copy Headers in Project not Public
Installation Directory under Deployment is valid (/Applications for example)

Oguzhan Murat Cakmak, starting his software career in Istanbul and advancing through roles in San Francisco at Uber and Hims&Hers, now does remote work from Kaş, Antalya, balancing his passion for technology with interests in kitesurfing, diving, hiking, and exploring diverse content on podcasts. Follow him on Twitter and Instagram

Webmentions

00
    Loading Webmentions...