Skip to content

Instantly share code, notes, and snippets.

The manual process is a bit more tedious than when using pods, for each pod you added you have to go in XCode and add them to the build. In order to do that:

  1. Create a new group called Libraries inside XCode.
  2. Open finder in ./node_modules/react-native/Librairies.
  3. Open the corresponding folder (Core is react-native/React and not in Libraries) and drag and drop the xcodeproj into the Libraries group in XCode.
  4. Go to the build phases section of the Messages target → Link Binary With Libraries. Drag and drop the product of each xcodeproj you added (eg: libReact.a) into the Link Binary section.
  5. In Build Settings → Linking → Other Linker Flags added -lc++. This is needed in order to compile some of RN sources
  6. If you needed RCTWebSocket (which is normally used in dev) go to Libraries → RCTWebsocket.xcodeproj → Build Settings → Apple LLVM 8.0 → Custom Compiler Flags → Other warning Flags → remove -Werr.
@dozoisch
dozoisch / TapEventPlugin with TouchPress
Created January 22, 2016 03:49
Tests about react TapEventPlugin to add Support for touchPress.
/**
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dozoisch
dozoisch / linc.sh
Created June 16, 2015 18:11
Run Lint Only on Changed files
git diff -z --name-only --diff-filter=ACMRTUB `git merge-base HEAD master` | xargs -0 eslint
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias dl="cd ~/Downloads"
alias fuck="sudo $(history -p \!\!)"
alias gst="git status"
alias gf="git fetch --prune"
grep -r -c <pattern> * | awk -F: '{if ($2 > 1){print $1}}'
@dozoisch
dozoisch / Redo as sudo
Last active August 29, 2015 14:06
redoes the last command with sudo
alias fuck='sudo $(history -p \!\!)'
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
sudo sh -c "iptables-save > /etc/iptables.rules"
@dozoisch
dozoisch / ST3-UserKeyBindings.json
Last active December 28, 2015 15:09
Just my Sublime Text 3 config files
[
{ "keys": ["ctrl+shift+s"], "command": "save_all" },
{ "keys": ["ctrl+alt+shift+s"], "command": "prompt_save_as" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+shift+f"], "command": "reindent"},