1.0.46 • Published 2 years ago

centeridentity-expo v1.0.46

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

CenterIdentity.com expo SDK!

Make a blockchain social network using expo in literally minutes!

npm install centeridentity-expo
yarn add centeridentity-expo

Getting started

nvm install 15

expo init (follow prompts)

cd *your app dir*

yarn add centeridentity-expo

in app.json, modify to include this:

{
  "expo": {
    "web": {
      "build": {
        "babel": {
          "include": [
            "centeridentity-expo"
          ]
        }
      }
    }
  }
}

in your App.js (or wherever you want to include this component), paste:

import { RecoverIdentity } from 'centeridentity-expo';

in the return from your render method or function, paste:

<RecoverIdentity
  apiKey='YOUR_API_KEY_FROM_DASHBOARD'
  sessionIdUrl='/generate-session-uuid'
  signinUrl='/create-identity'
  registerUrl='/create-identity'
  userNotFoundMessage='Identity not found for provided username and coordinates. Create a new identity?'
  publicUsernameLabel='Public username'
  privateUsernameLabel='Private username (do not share)'
  onSuccessfulRegister={(result) => {window.location.href = '/socialapp'}}
  onSuccessfulSignIn={(result) => {window.location.href = '/socialapp'}}
  onFailedRegister={(err) => {console.log(err)}}
  onFailedSignIn={(err) => {console.log(err)}}
  createText='Create'
  tryAgainText='Try again'
  width='100%'
  height={600}
/>

copy src/web/index.html from this repository into the root directory at web/index.html

in web/index.html, replace YOUR_GOOGLE_MAPS_API_KEY with your own google maps api key

goto https://centeridentity.com/ and get your API key. Place YOUR_API_KEY_FROM_DASHBOARD in the component above with your api key.

expo start:web

Done!

Contributing

PR, stars ✭ and issue reporting, welcome!

License

MIT

1.0.19

2 years ago

1.0.18

2 years ago

1.0.39

2 years ago

1.0.17

2 years ago

1.0.38

2 years ago

1.0.16

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.22

2 years ago

1.0.43

2 years ago

1.0.21

2 years ago

1.0.42

2 years ago

1.0.20

2 years ago

1.0.41

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.46

2 years ago

1.0.24

2 years ago

1.0.45

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.37

2 years ago

1.0.15

2 years ago

1.0.36

2 years ago

1.0.14

2 years ago

1.0.35

2 years ago

1.0.13

2 years ago

1.0.34

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago