Skip to content

Commit 319effb

Browse files
committed
Move exemple to exponent
1 parent 67dd035 commit 319effb

Some content is hidden

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

48 files changed

+55
-2269
lines changed

exemple/.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": ["babel-preset-exponent"],
3+
"env": {
4+
"development": {
5+
"plugins": ["transform-react-jsx-source"]
6+
}
7+
}
8+
}

exemple/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/**/*
2+
.exponent/*
3+
npm-debug.*
File renamed without changes.
File renamed without changes.

exemple/exp.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "image-header-scroll-view",
3+
"description": "Exemple project of react-native-image-header-scroll-view",
4+
"slug": "image-header-scroll-view",
5+
"privacy": "public",
6+
"sdkVersion": "12.0.0",
7+
"version": "0.0.2",
8+
"orientation": "portrait",
9+
"primaryColor": "#cccccc",
10+
"iconUrl": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
11+
"notification": {
12+
"iconUrl": "https://s3.amazonaws.com/exp-us-standard/placeholder-push-icon-blue-circle.png",
13+
"color": "#000000"
14+
},
15+
"loading": {
16+
"iconUrl": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
17+
"hideExponentText": false
18+
},
19+
"packagerOpts": {
20+
"assetExts": ["ttf", "mp4"]
21+
},
22+
"ios": {
23+
"supportsTablet": true
24+
}
25+
}

exemples/TvShow.js renamed to exemple/main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Exponent from 'exponent';
12
import React, { Component } from 'react';
23
import {
34
StyleSheet,
@@ -6,7 +7,7 @@ import {
67
Image,
78
Dimensions,
89
StatusBar
9-
} from 'react-native';
10+
} from 'react-native';
1011

1112
import HeaderImageScrollView from 'react-native-image-header-scroll-view';
1213
import tvShowContent from './assets/tvShowContent';
@@ -21,7 +22,7 @@ const TvShow = () => (
2122
renderHeader={() => (
2223
<Image source={tvShowContent.image} style={styles.image} />
2324
)}
24-
>
25+
>
2526
<View style={styles.section}>
2627
<Text style={styles.title}>
2728
<Text style={styles.name}>{tvShowContent.title}</Text>, ({tvShowContent.year})
@@ -89,4 +90,4 @@ const styles = StyleSheet.create({
8990
},
9091
});
9192

92-
export default TvShow;
93+
Exponent.registerRootComponent(TvShow);

exemple/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "image-header-scroll-view",
3+
"version": "0.0.2",
4+
"description": "Exemple project of react-native-image-header-scroll-view",
5+
"author": null,
6+
"private": true,
7+
"main": "main.js",
8+
"dependencies": {
9+
"@exponent/vector-icons": "~2.0.3",
10+
"exponent": "~12.0.3",
11+
"react": "~15.3.2",
12+
"react-native": "git+https://github.com/exponentjs/react-native#sdk-12.0.0",
13+
"react-native-image-header-scroll-view": "^0.0.2"
14+
}
15+
}

exemples/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

exemples/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

exemples/.flowconfig

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)