Skip to content

Commit 85d18f0

Browse files
authored
feat: Update packages to latest version (#43)
* feat: add the expo starter * feat: add all the source codes * chore: remove rn example * chore: update package version\ * chore: update example
1 parent 1486a7f commit 85d18f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+14165
-9488
lines changed

Example/.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
11+
# Native
12+
*.orig.*
13+
*.jks
14+
*.p8
15+
*.p12
16+
*.key
17+
*.mobileprovision
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
26+
27+
# macOS
28+
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

examples/App.tsx renamed to Example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ const styles = StyleSheet.create({
136136
},
137137
});
138138

139-
export default App;
139+
export default App;

Example/app.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"expo": {
3+
"name": "Example",
4+
"slug": "Example",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
9+
"splash": {
10+
"image": "./assets/splash.png",
11+
"resizeMode": "contain",
12+
"backgroundColor": "#ffffff"
13+
},
14+
"ios": {
15+
"supportsTablet": true
16+
},
17+
"android": {
18+
"adaptiveIcon": {
19+
"foregroundImage": "./assets/adaptive-icon.png",
20+
"backgroundColor": "#ffffff"
21+
}
22+
},
23+
"web": {
24+
"favicon": "./assets/favicon.png"
25+
}
26+
}
27+
}

Example/assets/adaptive-icon.png

17.1 KB
Loading

Example/assets/favicon.png

1.43 KB
Loading

Example/assets/icon.png

21.9 KB
Loading

Example/assets/splash.png

46.2 KB
Loading

Example/babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
};
6+
};

Example/constants.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const WOOT_PREFIX = 'chatwoot-widget:';
2+
export const POST_MESSAGE_EVENTS = {
3+
SET_LOCALE: 'set-locale',
4+
SET_CUSTOM_ATTRIBUTES: 'set-custom-attributes',
5+
SET_USER: 'set-user',
6+
SET_COLOR_SCHEME: 'set-color-scheme',
7+
};
8+
export const COLOR_WHITE = '#fff';
9+
export const BG_COLOR_WHITE = '#FFFF';
10+
export const BG_COLOR_DARK = '#25292c';

0 commit comments

Comments
 (0)