Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Apr 4, 2021
1 parent b097986 commit ec4bef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/plugins/react-native-web-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (context, options) {
alias: {
react: path.resolve(__dirname, '..', 'node_modules', 'react'),
'react-native$': 'react-native-web',
'@mobily/stacks': path.resolve(__dirname, '..', '..', 'dist', 'index.min.js'),
'@mobily/stacks': path.resolve(__dirname, '..', '..', 'dist', 'index.js'),
},
},
}
Expand Down
4 changes: 3 additions & 1 deletion docs/src/theme/ReactLiveScope/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as Stacks from '@mobily/stacks'

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

const { StacksProvider } = Stacks

const styles = StyleSheet.create({
root: {
backgroundColor: '#ddd',
Expand All @@ -26,7 +28,7 @@ const PlaceholderView = props => {
const App = props => {
const { children } = props

return <Stacks.StacksProvider>{children}</Stacks.StacksProvider>
return <StacksProvider>{children}</StacksProvider>
}

const ReactLiveScope = {
Expand Down

0 comments on commit ec4bef7

Please sign in to comment.