Slide 28
Slide 28 text
TEST
import React from 'react'
import {
StyleSheet,
Text,
View,
} from 'react-native'
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#f5fcff',
},
text: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
})
export default function Intro() {
return (
Hello, react-native meetup!!
)
}
for
import assert from 'assert'
import React from 'react'
import { shallow } from 'enzyme'
import Intro from '../../../src/components/intro'
const expected = 'Hello, react-native meetup!!'
describe('', function () {
it('renders correctry', function () {
const wrapper = shallow()
assert(wrapper.contains(expected))
})
})