-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank Hyperview app expo template #451
Comments
I didn't know about this feature of Expo, it would definitely make it easy for developers to create a new Hyperview app from scratch. |
Hey there, I recently initiated a discussion without properly doing my homework first. I want to work on this. Should I assume that the template will mostly resemble a direct copy of the demo app? |
Thanks @Tobi-De for reaching out! The demo app is a good starting point, although there might be a bit of specific logic that we might not want to embed in the generator. |
Alright, thanks. Once I can see an example, I'll prepare a draft pull request for the template. |
This is an example of a bare Hyperview app: import Hyperview from 'hyperview';
import moment from 'moment';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
export default () => {
return (
<NavigationContainer>
<Hyperview
behaviors={[]} // Add your custom behaviors here
components={[]} // Add your custom components here
entrypointUrl="https://yourserver.com/index.xml"
fetch={fetch}
formatDate={(date: Date, format: string) => {
moment(date).format(format);
}}
/>
</NavigationContainer>
);
}; and set of dependencies required:
although that list might need to be refined, as I assume a few are already provided by expo (react, react native, etc). Note: |
hi @Tobi-De - checking in, is my example above enough to get you started? Let me know if you're still looking into getting a draft PR out, thanks! |
yep I think so, still going to work on this, just a bit busy lately. Update: Found what I needed |
sounds good, let me know if you need additional guidance, and thanks for the update! |
Expo client
init
command supports creating a new app based on a NPM released package that contains an Expo project template. We should create one to facilitate creating new apps based on Hyperview.The text was updated successfully, but these errors were encountered: