I hereby claim:
- I am viceversus on github.
- I am viceversus (https://keybase.io/viceversus) on keybase.
- I have a public key ASAA-jplsAuol9qs4FhJ1vCFNa_f7igPo0ML6T-_xODizQo
To claim this, I am signing this object:
| public class MainApplication extends Application implements ReactApplication { | |
| private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | |
| ... | |
| @Override | |
| protected List<ReactPackage> getPackages() { | |
| return Arrays.<ReactPackage>asList( | |
| new MainReactPackage(), | |
| new RNConfigPackage(), | |
| ... |
| public class RNConfigPackage implements ReactPackage { | |
| @Override | |
| public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { | |
| List<NativeModule> modules = new ArrayList<>(); | |
| modules.add(new RNConfig(reactContext)); | |
| return modules; | |
| } |
| public class RNConfig extends ReactContextBaseJavaModule { | |
| public RNConfig(ReactApplicationContext reactApplicationContext) { | |
| super(reactApplicationContext); | |
| } | |
| @Override | |
| public String getName() { | |
| return "RNConfig"; | |
| } |
| android { | |
| … | |
| buildTypes { | |
| debug { | |
| buildConfigField('String', 'BUILD_ENV', '"development"') | |
| … | |
| } | |
| release { | |
| buildConfigField('String', 'BUILD_ENV', '"production"') | |
| … |
I hereby claim:
To claim this, I am signing this object:
| import React from 'react'; | |
| import UserList from 'user_list'; | |
| import { shallow } from 'enzyme'; | |
| describe('UserList', function () { | |
| var set, onSelectSpy, wrapper, instance; | |
| beforeEach(function () { | |
| set = new Set(); | |
| onSelectSpy = jasmine.createSpy('onSelect'); |
| import React from 'react'; | |
| import "babel-polyfill"; | |
| import listWrapper from 'list_wrapper'; | |
| import { shallow } from 'enzyme'; | |
| describe('ListWrapper', function () { | |
| var wrapper, ListComponent, MockListComponent, instance, set; | |
| beforeEach(function () { | |
| MockListComponent = React.createClass({ |
| import React from 'react'; | |
| import UserList from 'user_list'; | |
| import PokemonList from 'pokemon_list'; | |
| import listWrapper from 'list_wrapper'; | |
| $(function() { | |
| function renderList(ListComponent, $domNode) { | |
| var List = listWrapper(ListComponent); | |
| ReactDOM.render(<List />, $domNode[0]); |
| import React from 'react'; | |
| import UserList from 'user_list'; | |
| import PokemonList from 'pokemon_list'; | |
| $(function() { | |
| function render() { | |
| var userList = $('#user-list'), | |
| pokemonList = $('#pokemon-list'); | |
| if (userList.length > 0) { |
| var PokemonList = React.createClass({ | |
| propTypes: { | |
| onSelect: React.PropTypes.func.isRequired, | |
| selection: React.PropTypes.object.isRequired, | |
| }, | |
| getInitialState() { | |
| return { | |
| pokemon: [], | |
| }; |