Skip to content

Commit

Permalink
Reverting changes that didn't pan out
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoe committed Jan 10, 2024
1 parent f320e8b commit bcbace7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
9 changes: 3 additions & 6 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"name": "@department-of-veterans-affairs/mobile-component-library",
"version": "0.3.6-alpha.9",
"version": "0.3.6-alpha.6",
"description": "VA Design System Mobile Component Library",
"main": "src/App.tsx",
"publishConfig": {
"main": "src/index.tsx"
},
"main": "src/index.tsx",
"scripts": {
"start": "sb-rn-get-stories --config-path .storybook/native && expo start",
"android": "expo start --android",
Expand Down Expand Up @@ -41,7 +38,7 @@
},
"homepage": "https://department-of-veterans-affairs.github.io/va-mobile-library",
"dependencies": {
"@department-of-veterans-affairs/mobile-tokens": "0.3.1",
"@department-of-veterans-affairs/mobile-tokens": "npm:0.3.1",
"@os-team/i18next-react-native-language-detector": "^1.0.28",
"i18next": "^23.4.3",
"react-i18next": "^13.0.3",
Expand Down
5 changes: 0 additions & 5 deletions packages/components/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,4 @@ const App = () => {
)
}

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App)

export default App
17 changes: 9 additions & 8 deletions packages/components/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Export components here so they are exported through npm
export { SegmentedControl } from './components/SegmentedControl/SegmentedControl'
export { Button, ButtonVariants } from './components/Button/Button'
import App from './main'

const expoApp = App.default

if (expoApp && App.initiateExpo) {
App.initiateExpo(expoApp)
}

/**
* NEXT STEPS:
* 1. Check iOS/Android still work *SEEMS GOOD*
* 2. If so, clean up App.tsx/main.tsx and publish a test build to check package
*/
// Export components here so they are exported through npm
export { Button, ButtonVariants } from './components/Button/Button'
export { SegmentedControl } from './components/SegmentedControl/SegmentedControl'

0 comments on commit bcbace7

Please sign in to comment.