View b.json
[
{
"id": "59ad53cc251fe8ea313e877a",
"city": "Rivereno",
"image": "http://fanaru.com/images/club/trivia/t48.png"
},
{
"id": "59ad53ccb8f153a21165386e",
"city": "Bangor",
"image": "http://fanaru.com/images/club/trivia/t48.png"
View webpack.haul.js
/**
* This is Webpack config you need in order to get
* Typescript up and running
*/
module.exports = ({ platform }, { module }) => ({
// We have two files, index.ios.tsx and index.android.tsx
entry: `./index.${platform}.tsx`,
// We extend default loaders by prepending `ts-loader`
module: {
...module,
View test.m
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "RCTRootView.h"
View onlyUpdateForProps.js
import onlyUpdateForKeys from 'onlyUpdateForKeys';
const onlyUpdateForProps = (BaseComponent) => {
const propKeys = Object.keys(BaseComponent.propTypes || {});
return onlyUpdateForKeys(propKeys, BaseComponent);
};
export default onlyUpdateForProps;
View Module3.js
import {ActivityViewManager} from 'NativeModules';
ActivityViewManager.share({
text: 'Hey, I have just ordered 10 pizzas from RN app',
exclude: ['airDrop', 'postToFacebook']
});
View Module.js
import {ActivityViewManager} from 'NativeModules';
ActivityViewManager.share({
text: 'Hey, I have just ordered 10 pizzas from RN app'
});
View ActivityView.m
#import "ActivityView.h"
#import "RCTLog.h"
#import "RCTBridge.h"
#import "RCTUtils.h"
#import "RCTUIManager.h"
@implementation ActivityViewManager
@synthesize bridge = _bridge;
View example.js
// will be caught by promise-middleware
function makeASandwichWithSecretSauce(name) {
return {
types: [],
payload: fetch(...)
}
};
// This is complex one
// BTW, you don't have redux-thunk
View das.js
#!/usr/bin/env node
// Deps
var chain = require('slide').chain;
var path = require('path');
var ln = require('linklocal');
var exec = require('./exec');
var program = require('commander');
var linklocal = require('linklocal');
View ds.sh
#!/bin/bash
cd web
mkdir -p ./node_modules/@este
(
cd ./node_modules/@este
rm -rf ./common
ln -s ../../../common ./common