Skip to content
Permalink
Browse files

chore upgrade expo

  • Loading branch information
xcarpentier committed Dec 16, 2019
1 parent 9850d62 commit adc6647932ccba27f25e224282313251757b7729
Showing with 1,418 additions and 763 deletions.
  1. +6 −2 app.json
  2. +15 −16 example-slack-message/src/App.js
  3. +9 −9 package.json
  4. +1,388 −736 yarn.lock
@@ -4,8 +4,12 @@
"description": "Gifted Chat Expo Example",
"slug": "example-expo",
"privacy": "public",
"sdkVersion": "35.0.0",
"platforms": ["ios", "android", "web"],
"sdkVersion": "36.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "0.5.0",
"orientation": "portrait",
"icon": "https://d1wp6m56sqw74a.cloudfront.net/~assets/c9aa1be8a6a6fe81e20c3ac4106a2ebc",
@@ -1,22 +1,22 @@
import React from 'react';
import { Platform } from 'react-native';
import PropTypes from 'prop-types';
import { GiftedChat } from 'react-native-gifted-chat';
import emojiUtils from 'emoji-utils';
import React from 'react'
import { Platform } from 'react-native'
import PropTypes from 'prop-types'
import { GiftedChat } from 'react-native-gifted-chat'
import emojiUtils from 'emoji-utils'

import SlackMessage from './SlackMessage';
import SlackMessage from './SlackMessage'

export default class App extends React.Component {
state = {
messages: [],
}

componentWillMount() {
componentDidMount() {
this.setState({
messages: [
{
_id: 1,
text: 'Hello developer',
text: 'Hello developer!!!',
createdAt: new Date(),
user: {
_id: 2,
@@ -35,22 +35,22 @@ export default class App extends React.Component {
}

renderMessage(props) {
const { currentMessage: { text: currText } } = props;
const {
currentMessage: { text: currText },
} = props

let messageTextStyle;
let messageTextStyle

// Make "pure emoji" messages much bigger than plain text.
if (currText && emojiUtils.isPureEmojiString(currText)) {
messageTextStyle = {
fontSize: 28,
// Emoji get clipped if lineHeight isn't increased; make it consistent across platforms.
lineHeight: Platform.OS === 'android' ? 34 : 30,
};
}
}

return (
<SlackMessage {...props} messageTextStyle={messageTextStyle} />
);
return <SlackMessage {...props} messageTextStyle={messageTextStyle} />
}

render() {
@@ -63,7 +63,6 @@ export default class App extends React.Component {
}}
renderMessage={this.renderMessage}
/>
);
)
}

}
@@ -76,19 +76,19 @@
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "24.7.1",
"babel-preset-expo": "^7.0.0",
"expo": "^35.0.0",
"expo-constants": "~7.0.0",
"expo-image-picker": "~7.0.0",
"expo-location": "~7.0.0",
"expo-permissions": "~7.0.0",
"expo": "^36.0.0",
"expo-constants": "~8.0.0",
"expo-image-picker": "~8.0.0",
"expo-location": "~8.0.0",
"expo-permissions": "~8.0.0",
"flow-bin": "^0.108.0",
"husky": "^3.0.0",
"jest-expo": "^35.0.0",
"jest-expo": "^36.0.0",
"json": "^9.0.6",
"prettier": "1.18.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
"react-native-nav": "2.0.2",
"react-native-web": "^0.11.1",
"react-native-web-maps": "0.2.0",

0 comments on commit adc6647

Please sign in to comment.
You can’t perform that action at this time.