mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 22:50:22 +08:00
* Updated CustomView * Added touchable to map element * Added map linking * Added CustomActions * Added AccessoryBar * Added Footer * removed comments * Fixed up utils * Added permission handling
83 lines
1.6 KiB
JavaScript
83 lines
1.6 KiB
JavaScript
export default [
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: '#awesome',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 1,
|
|
name: 'Developer',
|
|
},
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: '',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 2,
|
|
name: 'React Native',
|
|
},
|
|
image: 'https://lh3.googleusercontent.com/-uXipYA5hSKc/VVWKiFIvo-I/AAAAAAAAAhQ/vkjLyZNEzUA/w800-h800/1.jpg',
|
|
sent: true,
|
|
received: true,
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: 'Send me a picture!',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 1,
|
|
name: 'Developer',
|
|
},
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: '',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 2,
|
|
name: 'React Native',
|
|
},
|
|
sent: true,
|
|
received: true,
|
|
location: {
|
|
latitude: 48.864601,
|
|
longitude: 2.398704,
|
|
},
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: 'Where are you?',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 1,
|
|
name: 'Developer',
|
|
},
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: 'Yes, and I use #GiftedChat!',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 2,
|
|
name: 'React Native',
|
|
},
|
|
sent: true,
|
|
received: true,
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: 'Are you building a chat app?',
|
|
createdAt: new Date(),
|
|
user: {
|
|
_id: 1,
|
|
name: 'Developer',
|
|
},
|
|
},
|
|
{
|
|
_id: Math.round(Math.random() * 1000000),
|
|
text: 'You are officially rocking GiftedChat.',
|
|
createdAt: new Date(),
|
|
system: true,
|
|
},
|
|
];
|