Here is a simple component that I am trying to test using React Native 0.39 and Jest 18:
// index.ios.js import React, { Component } from \'react\'; import { Ap
You can simply add a mock where your native module should be:
import { NativeModules, } from 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; describe('TestProject', () => { beforeEach(() => { NativeModules.TestModule = { test: jest.fn() } }); ... });