diff --git a/example/example.js b/example/example.js index e56ef3f5..8fab0740 100644 --- a/example/example.js +++ b/example/example.js @@ -53,7 +53,7 @@ class Example extends Component { render() { return ( - + React Native for Web: examples Image diff --git a/src/components/Image/index.js b/src/components/Image/index.js index 632069a1..6d8b0e92 100644 --- a/src/components/Image/index.js +++ b/src/components/Image/index.js @@ -17,7 +17,8 @@ const styles = { initial: { alignSelf: 'flex-start', backgroundRepeat: 'no-repeat', - backgroundPosition: 'center' + backgroundPosition: 'center', + backgroundSize: '100% 100%' }, img: { borderWidth: 0, @@ -187,8 +188,8 @@ class Image extends React.Component { */ return ( { test('defaults', () => { const result = shallowRender() diff --git a/src/components/View/index.spec.js b/src/components/View/index.spec.js index 125b765c..7d230759 100644 --- a/src/components/View/index.spec.js +++ b/src/components/View/index.spec.js @@ -1,11 +1,9 @@ -import { assertProps, render, renderToDOM, shallowRender } from '../../modules/specHelpers' +import { assertProps, shallowRender } from '../../modules/specHelpers' import assert from 'assert' import React from 'react/addons' import View from '.' -const ReactTestUtils = React.addons.TestUtils - suite('View', () => { test('prop "accessibilityLabel"', () => { assertProps.accessibilityLabel(View) diff --git a/src/modules/specHelpers/index.js b/src/modules/specHelpers/index.js index 3a115bb9..472a7625 100644 --- a/src/modules/specHelpers/index.js +++ b/src/modules/specHelpers/index.js @@ -93,9 +93,9 @@ export const assertProps = { } export function render(element, container) { - return container ? - React.render(element, container) : - ReactTestUtils.renderIntoDocument(element) + return container + ? React.render(element, container) + : ReactTestUtils.renderIntoDocument(element) } export function renderToDOM(element, container) { diff --git a/src/modules/styles/styles.css b/src/modules/styles/styles.css index a7126002..7a0347d8 100644 --- a/src/modules/styles/styles.css +++ b/src/modules/styles/styles.css @@ -247,6 +247,7 @@ /* cursor */ +.cursor-default { cursor: default; } .cursor-pointer { cursor: pointer; } /* direction */