Skip to content

Commit f74fed8

Browse files
authored
Merge pull request #110 from BlueBaseJS/develop
First release of this plugin (#1)
2 parents 5412617 + 331cd33 commit f74fed8

53 files changed

Lines changed: 5282 additions & 1100 deletions

Some content is hidden

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

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ dist/
3636
.cache
3737

3838
# Expo
39-
.expo
39+
.expo
40+
41+
# Jest
42+
.jest

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ build/docs
1313
coverage
1414
.nyc_output
1515
*.log
16+
.jest

assets/expo/icon.png

6.39 KB
Loading

assets/expo/splash.png

35.3 KB
Loading

assets/expo/wallpaper.jpg

181 KB
Loading

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2+
"plugins": [
3+
"@babel/plugin-transform-flow-strip-types"
4+
],
25
"presets": [
36
"@bluebase/code-standards/babel.config"
47
]

bluebase/common/bluebase.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Plugin from '../../src';
2+
3+
// This file contain all the apps, plugins and configuration which are required
4+
// for booting bluebase. see https://blueeast.gitbooks.io/bluebase/
5+
export default {
6+
plugins: [Plugin]
7+
};

bluebase/expo/apps/app1.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import { Text } from '@bluebase/components';
3+
import { createPlugin } from '@bluebase/core';
4+
5+
export default createPlugin({
6+
key: 'app-1',
7+
name: 'D App 1',
8+
9+
icon: {
10+
name: 'delete',
11+
type: 'icon',
12+
},
13+
14+
routes: {
15+
name: 'App1',
16+
path: '',
17+
screen: () => (<Text>App1</Text>),
18+
}
19+
});

bluebase/expo/apps/app2.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import { Text } from '@bluebase/components';
3+
import { createPlugin } from '@bluebase/core';
4+
5+
export default createPlugin({
6+
key: 'App 2',
7+
name: 'Demp App 2, This one has a long name',
8+
9+
icon: {
10+
source: { uri: 'https://placeimg.com/300/300/any' },
11+
type: 'image',
12+
},
13+
14+
routes: {
15+
name: 'App2',
16+
path: '',
17+
screen: () => (<Text>App2</Text>),
18+
}
19+
});

bluebase/expo/apps/app3.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { DynamicIcon } from '@bluebase/core/dist/components';
2+
import React from 'react';
3+
import { Text } from '@bluebase/components';
4+
import { View } from 'react-native';
5+
import { createPlugin } from '@bluebase/core';
6+
7+
// Custom component doesn't resepect size in this plugin
8+
export default createPlugin({
9+
key: 'App 3',
10+
name: 'Demp App 3',
11+
12+
icon: {
13+
component: () => (
14+
<View style={{ backgroundColor: 'red', borderRadius: 50 }}>
15+
<DynamicIcon type="icon" name="audiotrack" color="white" />
16+
</View>
17+
),
18+
type: 'component',
19+
},
20+
21+
routes: {
22+
name: 'App3',
23+
path: '',
24+
screen: () => (<Text>App3</Text>),
25+
}
26+
});

0 commit comments

Comments
 (0)