react-native-select-input-ios
Version:
A React Native SelectInput for iOS and Android, which uses a keyboard with a Picker component
22 lines (18 loc) • 475 B
JavaScript
import React from 'react'
import renderer from 'react-test-renderer'
import KeyboardButton from '../KeyboardButton'
const props = {
onPress: jest.fn(),
text: 'buttonText',
textAlign: 'left',
textStyle: {
color: '#ABCDEF',
fontSize: 13
}
}
describe('KeyboardButton', () => {
test('renders correctly with given props', () => {
const keyboardButton = renderer.create(<KeyboardButton {...props} />)
expect(keyboardButton).toMatchSnapshot()
})
})