Skip to content

Commit

Permalink
Postinstall script update
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-cometchat committed Jun 21, 2023
1 parent fd92c82 commit c79c938
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CometChatWorkspace/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Platform,
} from 'react-native';
import {PersistGate} from 'redux-persist/integration/react';
import theme from './src/cometchat-pro-react-native-ui-kit/CometChatWorkspace/src/resources/theme'
import theme from './src/cometchat-chat-uikit-react-native/CometChatWorkspace/src/resources/theme'

const styles = StyleSheet.create({
defaultFontFamily: {
Expand Down
2 changes: 1 addition & 1 deletion CometChatWorkspace/StackNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
CometChatGroupList,
CometChatConversationListWithMessages,
CometChatConversationList,
} from './src/cometchat-pro-react-native-ui-kit/CometChatWorkspace/src/index';
} from './src/cometchat-chat-uikit-react-native/CometChatWorkspace/src/index';

function StackNavigator(props) {
const Stack = createStackNavigator();
Expand Down
2 changes: 1 addition & 1 deletion CometChatWorkspace/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"version": "3.0.6-4",
"version": "3.0.6-5",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
6 changes: 3 additions & 3 deletions CometChatWorkspace/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ const request = require('request');
const extract = require('extract-zip')
const rimraf = require("rimraf");

const fileName = "cometchat-pro-react-native-ui-kit";
const fileName = "cometchat-chat-uikit-react-native";
const filePath = __dirname + "/src/"+fileName;

const zipFileName='cometchat-pro-react-native-ui-kit-master';
const zipFileName='cometchat-chat-uikit-react-native-master';

const zipName = zipFileName + ".zip";
const source = __dirname + "/"+ zipFileName;
const destination = filePath;

const downloadUrl = "https://github.com/cometchat-pro/cometchat-pro-react-native-ui-kit/archive/refs/heads/master.zip";
const downloadUrl = "https://github.com/cometchat-pro/cometchat-chat-uikit-react-native/archive/refs/heads/master.zip";


const download = (uri, filename, callback) => {
Expand Down
4 changes: 2 additions & 2 deletions CometChatWorkspace/src/defaultPages/LoginPage/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {connect} from 'react-redux';
import {CometChatAvatar} from '../../cometchat-pro-react-native-ui-kit/CometChatWorkspace/src/index';
import {CometChatAvatar} from '../../cometchat-chat-uikit-react-native/CometChatWorkspace/src/index';
import {COMETCHAT_CONSTANTS} from '../../../src/CONSTS';
import style from './style';
import * as actions from '../../store/action';
Expand All @@ -16,7 +16,7 @@ import {
Alert,
} from 'react-native';
import {ActivityIndicator} from 'react-native';
import DropDownAlert from '../../cometchat-pro-react-native-ui-kit/CometChatWorkspace/src/components/Shared/DropDownAlert';
import DropDownAlert from '../../cometchat-chat-uikit-react-native/CometChatWorkspace/src/components/Shared/DropDownAlert';
class LoginPage extends React.PureComponent {
constructor(props) {
super(props);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Build and run the Sample App.

# Learn more about UI-Kit

Learn more about how to integrate [UI Kit](https://github.com/cometchat-pro/cometchat-pro-react-native-ui-kit/tree/v3) inside your app.
Learn more about how to integrate [UI Kit](https://github.com/cometchat-pro/cometchat-chat-uikit-react-native/tree/v3) inside your app.

# Troubleshooting

Expand Down

0 comments on commit c79c938

Please sign in to comment.