This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const styles = StyleSheet.create({ | |
| branded: { | |
| fontFamily: 'Papyrus' | |
| } | |
| }); | |
| <View> | |
| <Text style={styles.branded}> | |
| Yummy Papyrus | |
| </Text> | |
| <View> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| .branded { | |
| font-family: Papyrus; | |
| } | |
| </style> | |
| <div class="branded"> | |
| <h1>Yummmy Papyrus</h1> | |
| <div> | |
| <p>Papyralicious</p> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const catsListStyles = StyleSheet.create({ | |
| listContainer: { | |
| backgroundColor: 'red' | |
| } | |
| }); | |
| const dogsListStyles = StyleSheet.create({ | |
| listContainer: { | |
| backgroundColor: 'red' | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const styles = StyleSheet.create({ | |
| heading: { | |
| fontFamily: "Papyrus", | |
| fontSize: 24, | |
| fontWeight: 700 | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .heading { | |
| font-family: Papyrus; | |
| font-size: 24px; | |
| font-weight: 700; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| OkHttpClientProvider.setOkHttpClientFactory(new OkHttpCertPin()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.example.app.OkHttpCertPin; | |
| import com.facebook.react.modules.network.OkHttpClientProvider; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.app; | |
| import com.facebook.react.modules.network.OkHttpClientFactory; | |
| import com.facebook.react.modules.network.OkHttpClientProvider; | |
| import com.facebook.react.modules.network.ReactCookieJarContainer; | |
| import java.util.concurrent.TimeUnit; | |
| import okhttp3.CertificatePinner; | |
| import okhttp3.OkHttpClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def delete(conn, _params) do | |
| jwt = Guardian.Plug.current_token(conn) | |
| {:ok, claims} = Guardian.Plug.claims(conn) | |
| Guardian.revoke!(jwt, claims) | |
| # ... | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def start(_type, _args) do | |
| import Supervisor.Spec | |
| children = [ | |
| worker(GuardianDb.ExpiredSweeper, []) | |
| # ... | |
| ] | |
| Supervisor.start_link(children, [...]) | |
| end |