hunk.code_window: import com.google.android.gms.common.api.GoogleApiClient;
   import com.google.android.gms.common.api.ResultCallback;
   import com.google.android.gms.common.api.Scope;
   import com.google.android.gms.fitness.Fitness;
  
hunk.labels: keep keep add keep
hunk.after_edit: import com.google.android.gms.common.api.Status;
  
hunk.file_path: android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/PedometerModule.java
hunk.type: add
file: /**
   * Copyright 2013-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.
   *
   * @providesModule ReactFiberRoot
   * @flow
   */
  
  'use strict';
  
  import type {Fiber} from 'ReactFiber';
  
  const {createHostRootFiber} = require('ReactFiber');
  
  export type FiberRoot = {
    // Any additional information from the host associated with this root.
    containerInfo: any,
    // The currently active root fiber. This is the mutable root of the tree.
    current: Fiber,
    // Determines if this root has already been added to the schedule for work.
    isScheduled: boolean,
    // The work schedule is a linked list.
    nextScheduledRoot: FiberRoot | null,
    // Top context object, used by renderSubtreeIntoContainer
    context: Object | null,
    pendingContext: Object | null,
  };
  
  exports.createFiberRoot = function(containerInfo: any): FiberRoot {
    // Cyclic construction. This cheats the type system right now because
    // stateNode is any.
    const uninitializedFiber = createHostRootFiber();
    const root = {
      current: uninitializedFiber,
      containerInfo: containerInfo,
      isScheduled: false,
      nextScheduledRoot: null,
      context: null,
      pendingContext: null,
    };
    uninitializedFiber.stateNode = root;
    return root;
  };
  