View Effect.js
/**
* @providesModule Effects
* @flow
*/
import { Linking } from 'react-native';
import AppDataApi from 'AppDataApi';
import Actions from 'Actions';
import ActionTypes from 'ActionTypes';
View worker.js
setTimeout(function() {
postMessage('hello there');
}, 500);
onmessage = function(e) {
console.log('Message received from main script');
var workerResult = 'Result: ' + (e.data[0] * e.data[1]);
console.log('Posting message back to main script');
postMessage(workerResult);
}
View error
╭─ ~/universe/apps/rnplay flow
node_modules/react-native/Libraries/StyleSheet/StyleSheet.js:135
135: for (var key in obj) {
^^^ T. This type is incompatible with
135: for (var key in obj) {
^ iteration expected on object
node_modules/react-native/Libraries/StyleSheet/StyleSheet.js:137
137: result[key] = ReactNativePropRegistry.register(obj[key]);
^^^^^^^^ access of computed property/element. Computed property/element cannot be accessed on
View example.js
/**
* @providesModule AuthenticationScreen
* @flow
*/
export default class AuthenticationScreen extends React.Component {
render() {
// vvv typo on styles.container, but Flow doesn't care
return (
<View style={styles.continer} />
View index.android.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View navigation-experimental-notes.md

NavigationExperimental notes

Containers

RootNavigationContainer

  • You pass the reducer to this, it actually ultimately receives all navigation calls via onNavigate, which is mostly equivalent to Redux dispatch. It setState and persisting state. it is like the redux "store"
View IncrementalListView.js
/**
* @providesModule IncrementalListView
*/
'use strict';
var InteractionManager = require('InteractionManager');
var LayoutAnimation = require('LayoutAnimation');
var ListViewDataSource = require('ListViewDataSource');
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
var React = require('React');
View ViewabilityHelper.js
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule ViewabilityHelper
* @flow
*/
'use strict';
const ViewabilityConsts = {
VIEWABLE_PERCENT_THRESHOLD: 50,
View WIP - WindowedListView.js
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule WindowedListView
* @flow
*/
'use strict';
var React = require('React');
var ScrollView = require('ScrollView');