Skip to content

A simple tutorial to get to know Solito/ can't add or edit a new screen. #91

Answered by SueHeir
omar-shahid asked this question in Q&A
Discussion options

You must be logged in to vote

So in no way am I qualified to be posting tutorials, I'm very new at React, let alone React Native, or even Solito. But if anyone spent way too long trying to figure this out as I did (got stuck trying to get Nextjs part to work), hopefully this helps.

Add a screen under packages/app/features

import { Text, View } from 'dripsy'
import React from 'react'

export function PostScreen() {
  return (
    <View
      sx={{ flex: 1, justifyContent: 'center', alignItems: 'center', p: 16 }}
    >
      <Text>Post</Text>
    </View>
  )
}

Setup react native side

Edit packages/app/navigation/native/index.tsx to include the following entry in const Stack, and the following component in <Stack.navigator>

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@nandorojo
Comment options

@nandorojo
Comment options

@nandorojo
Comment options

@SueHeir
Comment options

Answer selected by nandorojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #76 on June 23, 2022 20:28.