import React, { useState } from 'react'; import { ScrollView, View, Text, TextInput } from 'react-native'; import Card from '_global/Card'; import Space from '../../Space'; import HightLightText from '../HightLightText'; import { styles } from './style'; export default () => { const [searchKeyword, setSearchKeyword] = useState('React'); const contacts = [ { name: '张三', phone: '138****1234', company: 'React 科技有限公司' }, { name: '李四', phone: '139****5678', company: 'Vue 技术公司' }, { name: '王五', phone: '137****9012', company: 'React Native 开发团队' }, { name: '赵六', phone: '136****3456', company: 'Angular 解决方案' }, ]; const tags = [ 'React', 'React Native', 'JavaScript', 'TypeScript', '移动开发', '跨平台', ]; return ( 联系人列表 {contacts.map((contact, index) => ( {contact.phone} ))} 标签高亮 {tags.map((tag, index) => ( ))} ); };