Skip to content

Commit ec4bef7

Browse files
committed
Update docs
1 parent b097986 commit ec4bef7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/plugins/react-native-web-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (context, options) {
99
alias: {
1010
react: path.resolve(__dirname, '..', 'node_modules', 'react'),
1111
'react-native$': 'react-native-web',
12-
'@mobily/stacks': path.resolve(__dirname, '..', '..', 'dist', 'index.min.js'),
12+
'@mobily/stacks': path.resolve(__dirname, '..', '..', 'dist', 'index.js'),
1313
},
1414
},
1515
}

docs/src/theme/ReactLiveScope/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import * as Stacks from '@mobily/stacks'
33

44
import { View, Text, StyleSheet } from 'react-native'
55

6+
const { StacksProvider } = Stacks
7+
68
const styles = StyleSheet.create({
79
root: {
810
backgroundColor: '#ddd',
@@ -26,7 +28,7 @@ const PlaceholderView = props => {
2628
const App = props => {
2729
const { children } = props
2830

29-
return <Stacks.StacksProvider>{children}</Stacks.StacksProvider>
31+
return <StacksProvider>{children}</StacksProvider>
3032
}
3133

3234
const ReactLiveScope = {

0 commit comments

Comments
 (0)