-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
37 lines (33 loc) · 867 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {Component} from 'ern-navigation';
import {SafeAreaView, ScrollView, Text, View} from 'react-native';
import {Header} from 'react-native/Libraries/NewAppScreen';
export default class AppRouter extends Component {
static displayName = 'Product Detail';
static navigationOptions = {
hide: true,
title: '',
buttons: [],
};
render() {
const {id} = this.jsonProps;
console.log('jsonProps', this.jsonProps);
return (
<SafeAreaView>
<ScrollView contentInsetAdjustmentBehavior="automatic">
<Header />
<View>
<Text>This micro app is detail of a product: ID: {id}</Text>
</View>
</ScrollView>
</SafeAreaView>
);
}
}