diff --git a/android/app/build.gradle b/android/app/build.gradle index 34b1385..78611d3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -152,7 +152,9 @@ dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:+" // From node_modules - compile 'com.facebook.fresco:animated-gif:1.0.1' // for gif support + compile 'com.facebook.fresco:fresco:1.3.0' // For animated GIF support + compile 'com.facebook.fresco:animated-gif:1.3.0' + compile 'com.facebook.fresco:animated-base-support:1.3.0' compile project(':react-native-vector-icons') } diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index 2de8b55..3efef78 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index cc2ae12..a5dabe5 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index f10cf50..a6691a7 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 03e6278..e173ace 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index eb58b2b..26b8710 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/gradlew b/android/gradlew old mode 100644 new mode 100755 diff --git a/app/assets/images/homeBg.jpg b/app/assets/images/homeBg.jpg deleted file mode 100644 index c520cd0..0000000 Binary files a/app/assets/images/homeBg.jpg and /dev/null differ diff --git a/app/assets/images/loadingChat.gif b/app/assets/images/loadingChat.gif new file mode 100644 index 0000000..82de25b Binary files /dev/null and b/app/assets/images/loadingChat.gif differ diff --git a/app/assets/images/logo.png b/app/assets/images/logo.png new file mode 100644 index 0000000..968138c Binary files /dev/null and b/app/assets/images/logo.png differ diff --git a/app/assets/images/mainBg.jpg b/app/assets/images/mainBg.jpg new file mode 100644 index 0000000..37497c6 Binary files /dev/null and b/app/assets/images/mainBg.jpg differ diff --git a/app/assets/images/patterns/1.jpg b/app/assets/images/patterns/1.jpg deleted file mode 100644 index c046fed..0000000 Binary files a/app/assets/images/patterns/1.jpg and /dev/null differ diff --git a/app/assets/images/refresh.png b/app/assets/images/refresh.png deleted file mode 100644 index 4ff91ff..0000000 Binary files a/app/assets/images/refresh.png and /dev/null differ diff --git a/app/screens/home.js b/app/screens/home.js index 48de1e4..f861878 100644 --- a/app/screens/home.js +++ b/app/screens/home.js @@ -9,7 +9,8 @@ import { Text, TouchableOpacity, Permissions, - AsyncStorage + AsyncStorage, + Image } from 'react-native'; import { Actions @@ -18,7 +19,9 @@ import { Fonts } from '../utils/Fonts.js'; const windowWidth = Dimensions.get('window').width; const windowHeight = Dimensions.get('window').height; -const backgroundLink = '../assets/images/homeBg.jpg'; + +const backgroundLink = '../assets/images/mainBg.jpg'; +const logoLink = '../assets/images/logo.png'; type Props = {}; export default class Home extends Component { @@ -31,8 +34,7 @@ export default class Home extends Component { - Nexto - spontaneous connection + @@ -58,26 +60,22 @@ const homeStyles = { height: windowHeight }, logo: { - color: 'grey', - fontSize: 50, - textAlign: 'center', - zIndex: 100, - fontFamily: Fonts.Sunflower - }, - motto: { - color: '#0e8f9e', - fontSize: 18, - fontFamily: Fonts.Sunflower + zIndex: 2, + height: 350, + width: 350, + padding: 0 }, connect: { - backgroundColor: '#0e8f9e', padding: 15, width: windowWidth - 100, justifyContent: 'flex-end', + borderColor: 'black', + borderWidth: 2, + borderRadius: 5 }, connectTxt: { textAlign: 'center', - color: 'white', + color: 'black', fontSize: 25 } } diff --git a/app/screens/loading.js b/app/screens/loading.js index b94c98e..fafda8b 100644 --- a/app/screens/loading.js +++ b/app/screens/loading.js @@ -15,7 +15,8 @@ import { const windowWidth = Dimensions.get('window').width; const windowHeight = Dimensions.get('window').height; -const loadingGIF = 'http://www.playrosy.com/ourgames/vampiregirlmakeover/images/_preloader.gif'; + +const loadingGIF = '../assets/images/loading.gif'; type Props = {}; export default class Loading extends Component { @@ -55,8 +56,10 @@ export default class Loading extends Component { render() { return ( - + + Please wait to be connected... + © Nexto @@ -75,7 +78,8 @@ const loadingStyles = { }, gif: { height: 50, - width: 50 + width: 50, + zIndex: 10 }, waitTxt: { color: 'white', diff --git a/app/screens/main/chat.js b/app/screens/main/chat.js index 01ea87c..c2967e6 100644 --- a/app/screens/main/chat.js +++ b/app/screens/main/chat.js @@ -27,6 +27,8 @@ const io = require('socket.io-client/dist/socket.io'); const windowWidth = Dimensions.get('window').width; const windowHeight = Dimensions.get('window').height; +const loadingGIF = '../../assets/images/loadingChat.gif'; + type Props = {}; export default class Chat extends Component { constructor(props) { @@ -46,28 +48,28 @@ export default class Chat extends Component { console.log(props); } - componentDidMount() { - this.socket = io('http://10.0.2.2:3000', {jsonp: false}); - this.socket.on('connect', () => { - this.socket.emit('initial', {position: this.props.position, avatar: this.props.avatar}); - }); - - this.socket.on("userId", (obj) => { - console.log("User Id assigned: " + obj.userId); - this.setState({userId: obj.userId}); - }); - - this.socket.on('initMessages', (allMsg) => { - console.log('Initial messages received: ' + allMsg); - allMsg.map((msg) => { - this.addMessage(msg); - }); - }); - - this.socket.on('newMessage', (msg) => { - this.addMessage(msg); - }); - } + // componentDidMount() { + // this.socket = io('http://10.0.2.2:3000', {jsonp: false}); + // this.socket.on('connect', () => { + // this.socket.emit('initial', {position: this.props.position, avatar: this.props.avatar}); + // }); + // + // this.socket.on("userId", (obj) => { + // console.log("User Id assigned: " + obj.userId); + // this.setState({userId: obj.userId}); + // }); + // + // this.socket.on('initMessages', (allMsg) => { + // console.log('Initial messages received: ' + allMsg); + // allMsg.map((msg) => { + // this.addMessage(msg); + // }); + // }); + // + // this.socket.on('newMessage', (msg) => { + // this.addMessage(msg); + // }); + // } addMessage = (msg) => { console.log('New message received: '); @@ -150,9 +152,8 @@ export default class Chat extends Component { {this.state.messagesDOM.length == 0 ? ( - - No one's talkin around you! Start it up! - + + Loading the conversation around you! ) : ( @@ -217,6 +218,10 @@ const styles = { justifyContent: 'center', alignItems: 'center' }, + loadingGif: { + height: 70, + width: 70 + }, msgCont: { flexDirection: 'row', alignSelf: 'stretch', @@ -299,7 +304,7 @@ const styles = { flex: 1, alignItems: 'center', justifyContent: 'center', - borderLeftColor: '#0e8f9e', + borderLeftColor: '#c7c9cc', borderLeftWidth: 1 }, sendIcon: { diff --git a/app/screens/main/navbar.js b/app/screens/main/navbar.js index 4c31553..d1a4256 100644 --- a/app/screens/main/navbar.js +++ b/app/screens/main/navbar.js @@ -40,7 +40,11 @@ export default class Navbar extends Component { Chat - online + + + + online + @@ -77,11 +81,18 @@ const styles = { color: 'white', fontFamily: Fonts.Sunflower }, - status: { - fontSize: 13, - color: 'white', - fontFamily: Fonts.Sunflower + statusCont: { + flexDirection: 'row' }, + statusIcon: { + color: 'green', + marginRight: 5 + }, + statusTxt: { + fontSize: 13, + color: 'white', + fontFamily: Fonts.Sunflower + }, avatar: { height: 30, width: 30,